/// <summary> /// Checks to see whether the data member /// <see cref="unaryOperatorCoercions"/> is initialized /// to its default state. /// </summary> private void CheckUnaryOperatorCoercions() { lock (SyncObject) if (this.unaryOperatorCoercions == null) { if (this.IsDisposed) { throw new InvalidOperationException(Resources.ObjectStateThrowMessage); } else { this.unaryOperatorCoercions = this.InitializeUnaryOperatorCoercions(); } } }
public override void Dispose() { if (this.IsDisposed) { return; } try { lock (SyncObject) { if (this.classes != null) { this.classes.Dispose(); this.classes = null; } if (this.delegates != null) { this.delegates.Dispose(); this.delegates = null; } if (this.enums != null) { this.enums.Dispose(); this.enums = null; } if (this.interfaces != null) { this.interfaces.Dispose(); this.interfaces = null; } if (this.structs != null) { this.structs.Dispose(); this.structs = null; } if (this.types != null) { this.types = null; } if (this.binaryOperatorCoercions != null) { this.binaryOperatorCoercions.Dispose(); this.binaryOperatorCoercions = null; } if (this.typeInitializer != null) { this.typeInitializer.Dispose(); this.typeInitializer = null; } if (this.constructors != null) { this.constructors.Dispose(); this.constructors = null; } if (this.methods != null) { this.methods.Dispose(); this.methods = null; } if (this.events != null) { this.events.Dispose(); this.events = null; } if (this.fields != null) { this.fields.Dispose(); this.fields = null; } if (this.indexers != null) { this.indexers.Dispose(); this.indexers = null; } if (this.properties != null) { this.properties.Dispose(); this.properties = null; } if (this.typeCoercions != null) { this.typeCoercions.Dispose(); this.typeCoercions = null; } if (this.unaryOperatorCoercions != null) { this.unaryOperatorCoercions.Dispose(); this.unaryOperatorCoercions = null; } if (this._members != null) { this._members = null; } fullTypesChecked = true; } } finally { base.Dispose(); } }
public _UnaryOperatorsBase(_FullMembersBase master, IUnaryOperatorCoercionMemberDictionary <TType> originalSet, _GenericInstantiableTypeBase <TCtor, TEvent, TField, TIndexer, TMethod, TProperty, TType> parent) : base(master, originalSet, ((TType)(object)(parent))) { }