SoftwareEngineering2/WindowsFormsApp01/ClassLibrary01/CodeFile1.cs
2019-04-06 11:24:54 +02:00

34 lines
373 B
C#

using System.Runtime.CompilerServices;
public class SingeltonPattern
{
private static SingeltonPattern _singelton;
private SingeltonPattern()
{
}
public static SingeltonPattern GetInstance()
{
if (_singelton == null)
{
_singelton = new SingeltonPattern();
}
return _singelton;
}
}