protected override void Dispose(MosaicLib.Utils.DisposableBase.DisposeType disposeType) { if (disposeType == DisposeType.CalledExplicitly) { Utils.Fcns.DisposeOfObject(ref sp); } spFlushAction = null; }
/// <summary> /// Implementes locally adjusted version of the base classes DisposableBase.Dispose(disposeType) method. /// Calls base.Dispose(disposeType). If disposeType is CalledExplictly then it disposes of each of the contained targetLMH instances. /// </summary> /// <param name="disposeType">Indicates if this dispose call is made explicitly or by the finalizer.</param> protected override void Dispose(MosaicLib.Utils.DisposableBase.DisposeType disposeType) { base.Dispose(disposeType); if (disposeType == DisposeType.CalledExplicitly) { for (int idx = 0; idx < targetLMHArray.Length; idx++) { Utils.Fcns.DisposeOfObject(ref targetLMHArray[idx]); } } targetLMHArray = null; }