示例#1
0
 protected virtual void InternalDispose()
 {
     if (this.implementation != null)
     {
         this.implementation.Dispose();
         this.implementation = null;
     }
 }
示例#2
0
 protected virtual void InternalDispose()
 {
     if (this.implementation != null)
     {
         this.implementation.Dispose();
         this.implementation = null;
     }
 }
示例#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;
        }