public void Dispose() { if (instance == this) { instance = null; } }
/// <summary> /// Internal constructor. This class cannot be instantiated externally. /// </summary> internal CodecManager() { if (instance == null) { instance = this; } }
/// <summary> /// Internal constructor. This class cannot be instantiated externally. /// </summary> internal CodecManager() : base() { if (_instance == null) { _instance = this; } }
protected override void dispose(bool disposeManagedResources) { if (_instance == this) { if (disposeManagedResources) { _instance = null; } } base.dispose(disposeManagedResources); }
/// <summary> /// Internal constructor. This class cannot be instantiated externally. /// </summary> internal CodecManager() : base() { if ( _instance == null ) { _instance = this; } }
protected override void dispose( bool disposeManagedResources ) { if ( _instance == this ) { if ( disposeManagedResources ) { _instance = null; } } base.dispose( disposeManagedResources ); }