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