KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a class: class PrintStringDataBuilder { PrintStringDataBuilder() { } public static GetInstance() { return new PrintStringDataBuilder(); } //other class methods and fields, properties } Accessed from client Code as: PrintStringDataBuilder instance = PrintStringDataBuilder.GetInstance(); Is above call thread-safe? Edit: Just trying to avoid writing PrintStringDataBuilder builder = new PrintStringDataBuilder(); multiple times in asp.net mvc web app. There are no other static methods, static fields or static properties in the PrintStringDataBuilder class.
Tags (comma-separated)
Save Edits
Cancel