adspace


Is static class thread safe in c#?

Answer Posted / Rajendra Singh Rawat

Yes, static classes are thread-safe because only one instance of the class exists. All static members are shared among all instances and are accessed at the class level.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression tree in c#?

1013


How do you inherit a class into other class in c#?

1004


What is an abstract class c#?

985


Why can't we use a static class instead of singleton?

968


How to assign Null value to Var?

1077


Which namespaces are necessary to create a localized application?

1153