c# - Directives and Assembly References -


i've inherited old .net 2.0 c# system in work, sifting way through enormous code base. graduate i'm interested in why existing developers did things, ways. 1 particular habit previous developers had was, instead of importing references @ top of class -

using system.io; 

they did continually throughout - (rather importing reference @ top).

system.io.file.exists(); 

could shed light difference(s) is/are other having type more code? system i'm working on business object orientated system (csla), , no prior experience methodology, recommend way approach learning system i've inherited. appreciate can't see system i've got bit of insight experienced appreciated.

regards.

it's style choice. people use full names know local type names won't conflict system types.

using statements way compiler find referenced types @ compile time, there no difference @ runtime between;

using system.io;  file.exists(); 

and

system.io.file.exists(); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -