Beispiel #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     lock (this.SyncObject)
         if (this.implementationTypes != null)
         {
             this.implementationTypes.Dispose();
             this.implementationTypes.Clear();
             this.implementationTypes = null;
         }
 }
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (this.uniqueIdentifier != null)
         {
             this.uniqueIdentifier = null;
         }
         if (this.metadata != null)
         {
             this.metadata = null;
         }
         if (this.canRead)
         {
             this.canRead = false;
         }
         if (this.getMethod != null)
         {
             this.getMethod.Dispose();
             this.getMethod = null;
         }
         if (this.canWrite)
         {
             this.canWrite = false;
         }
         if (this.setMethod != null)
         {
             this.setMethod.Dispose();
             this.setMethod = null;
         }
         if (this.implementationTypes != null)
         {
             this.implementationTypes.Dispose();
             this.implementationTypes.Clear();
             this.implementationTypes = null;
         }
         this.propertyType = null;
     }
     finally
     {
         base.Dispose(disposing);
     }
 }