Beispiel #1
0
 private void CheckIndexers()
 {
     lock (this.SyncObject)
         if (this.indexers == null)
         {
             this.indexers = this.InitializeIndexers();
         }
 }
Beispiel #2
0
 public override void Dispose()
 {
     try
     {
         lock (this.SyncObject)
         {
             if (this.metadata != null)
             {
                 this.metadata.Dispose();
                 this.metadata = null;
             }
             if (this.constraints != null)
             {
                 this.constraints.Clear();
                 this.constraints = null;
             }
             if (this._constraints != null)
             {
                 this._constraints.Dispose();
                 this._constraints = null;
             }
             if (this.constructors != null)
             {
                 this.constructors.Dispose();
                 this.constructors = null;
             }
             if (this.events != null)
             {
                 this.events.Dispose();
                 this.events = null;
             }
             if (this.indexers != null)
             {
                 this.indexers.Dispose();
                 this.indexers = null;
             }
             if (this.methods != null)
             {
                 this.methods.Dispose();
                 this.methods = null;
             }
             if (this.properties != null)
             {
                 this.properties.Dispose();
                 this.properties = null;
             }
             if (this._members != null)
             {
                 this._members.Dispose();
                 this._members = null;
             }
         }
     }
     finally
     {
         base.Dispose();
     }
 }