Must static method/classes/variables be accessed one at a time in .net? -


i write lot of code in static methods/classes/variables can accessed across site, globalization ideas , "spare" creation , destruction of classes when not data preservation classes(dbcontext example).

the question is, must these classes/methods accessed once @ time? cause kind of bottle-neck?

thanks.

the question classes/methods can accessed once @ time?

no, can accessed multiple times , in parallel. should careful static classes in multi-threaded applications need ensure thread safe.

does cause kind of bottle neck?

this depend on how written , do.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -