Beispiel #1
0
 protected override void Destructor()
 {
     lock (s_Lock)
     {
         base.Destructor();
         s_Instance = null;
     }
 }
Beispiel #2
0
 private GraphManager()
 {
     lock (s_Lock)
     {
         if (s_Instance != null)
         {
             throw new GraphException(StringConsts.GS_INSTANCE_ALREADY_ALLOCATED_ERROR.Args(GetType().Name));
         }
         s_Instance = this;
     }
 }