Is it better to use static class to initialize global variables ?

 Posted by Akiii on 5/15/2012 | Category: ASP.NET Interview questions | Views: 1944 | Points: 40
Answer:

Yes, it is better to use static class to initialize global variables.

(1) Performance is increased as static members are efficinet handled in dotnet framework.

(2) Using class eliminates the boxing and unboxing steps.
(3) Less memory usage



Thanks and Regards
Akiii


| Alert Moderator 

Comments or Responses

Login to post response