For example, referencing something as System.Data.Datagrid as opposed to just Datagrid. Please provide examples and explanation. Thanks.
For example, referencing something as System.Data.Datagrid as opposed to just Datagrid. Please provide examples
Share
The benefit is that you don’t need to add an import for everything you use, especially if it’s the only thing you use from a particular namespace, it also prevents collisions.
The downside, of course, is that the code balloons out in size and gets harder to read the more you use specific qualifiers.
Personally I tend to use imports for most things unless I know for sure I will only be using something from a particular namespace once or twice, so it won’t impact the readability of my code.