示例#1
0
 /// <summary>
 ///   Implements the .NET Dispose pattern.
 /// </summary>
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         handle.Dispose();
         handle.SetHandleAsInvalid();
     }
 }
示例#2
0
 /// <summary>
 ///   Implements the .NET Dispose pattern.
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && handle != null && !handle.IsInvalid)
     {
         handle.Dispose();
         handle.SetHandleAsInvalid();
     }
 }
示例#3
0
 /// <summary>
 ///   Implements the .NET Dispose pattern.
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         handle.Dispose();
         handle.SetHandleAsInvalid();
         boxedModule?.Dispose();
     }
 }