Beispiel #1
0
 protected virtual void InternalDispose()
 {
     if (this.implementation != null)
     {
         this.implementation.Dispose();
         this.implementation = null;
     }
 }
Beispiel #2
0
 protected virtual void InternalDispose()
 {
     if (this.implementation != null)
     {
         this.implementation.Dispose();
         this.implementation = null;
     }
 }
Beispiel #3
0
        /// <summary>
        /// Do-nothing implementation: derived classes will override as see fit.
        /// </summary>
        protected virtual void InternalDispose()
        {
            if (this.implementation is null)
            {
                return;
            }

            this.implementation.Dispose();
            this.implementation = null;
        }