O
@masklinn said:@ammoQ said:@Oscar L said:So two requests, submitted for your approval:
In your opinion, what are the advantages/disadvantages of explicitly using everything?
Is there a way to explicitly "use" a generic class? (I really looked for this one, honest)IMO this is a feature that is really missing in C#, compared to Java.1.: Disadvantages: you have to do more typing; code might be less readable.Advantages: It's always clear where the class comes from. (but then, the IDE would probably tell you if you asked...)
If I understood how it works, it also prevents the cluttering of the local namespace, which I always consider a good thing.
I've been coding a class that has quite a few aliases at the top, and the list is growing to be a pretty substantial number compared to what I could have done using namespaces instead. I was thinking, though - if the class starts to use "too many" other classes, whatever that means, wouldn't that be a good indicator that the class should be broken down further?