private void CheckProperties() { lock (this.SyncObject) if (this.properties == null) { this.properties = this.InitializeProperties(); } }
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(); } }