Click here to Skip to main content
15,895,656 members
Articles / Programming Languages / C#

Simple Singleton Pattern in C#

25 Nov 2018CPOL 12K   3   7
Here is an alternate sample of "Singleton" Pattern. And I hope it is easier to understand.public class MySigleton{ private static MySigleton instance; private MySigleton() { } public static MySigleton InstanceMySigleton { get { if...
Only logged in members can view this content

Please go to the C# Table of Contents to view the list of available articles in this section.
Closed because this item is a copy of an existing article and does not provide adequate reference to the original. Reported by RedDk, Peter_in_2780, Richard MacCutchan, CHill60, OriginalGriff, User 59241 on Monday, November 26, 2018 7:14am