public static CategoryManager GetInstance() { lock (typeof(CategoryManager)) { if( instance == null) instance = new CategoryManager(); return instance; } }
public void Dispose() { instance = null; }