예제 #1
0
 public DisposeMe()
 {
     if (Instance != null)
     {
         throw new Exception("There is a DisposeMe being used.");
     }
     Instance = this;
 }
예제 #2
0
 public void Dispose()
 {
     Instance = null;
 }