The code shows Singleton class written with intent to prevent creation
of mulitple objects at run-time. There is, however, one missed detail,
allowing to create multiple instances of Singleton. What is that?
private constructor can be accessed over inheritance, it must be removed completely
field instance and property Instance should not be different only in case
it is not possible to create multiple instances of Singleton
the class should not have constructor
it should have lock() operation around new to prevent execution of new from different threads
C# question 1
Next question
Home
New instance can be created from a different thread when get accessor is executed concurrently.