E
emma middlebrook
Hi
Am very curious. How, if at all, do people make use of the 'using'
directive to alias namespaces or classes to make their code more
readable (or otherwise e.g. more flexible/maintainable)? Are there any
guidelines/rules?
Is it bad to have a load of using directives at the top of a source
file (this is what I do - I totally 'flatten' out the class
hierarchy)? Is it better to alias a namespace or a class? I presume
fully qualifying everything i.e. avoiding 'using' altogether is silly
- am I right?
In C++, for instance, typedefs come very much in handy when dealing
with the standard library. I don't think that making an alias with the
'using' directive in C# is that analagous but wondering what real
experiences people have had.
Thanks very much
Emma Middlebrook
(e-mail address removed)
Am very curious. How, if at all, do people make use of the 'using'
directive to alias namespaces or classes to make their code more
readable (or otherwise e.g. more flexible/maintainable)? Are there any
guidelines/rules?
Is it bad to have a load of using directives at the top of a source
file (this is what I do - I totally 'flatten' out the class
hierarchy)? Is it better to alias a namespace or a class? I presume
fully qualifying everything i.e. avoiding 'using' altogether is silly
- am I right?
In C++, for instance, typedefs come very much in handy when dealing
with the standard library. I don't think that making an alias with the
'using' directive in C# is that analagous but wondering what real
experiences people have had.
Thanks very much
Emma Middlebrook
(e-mail address removed)