protected override void OnIdentifierChanged(IGeneralMemberUniqueIdentifier oldIdentifier, DeclarationChangeCause cause) { if (this.uniqueIdentifier != null) { this.uniqueIdentifier = null; } base.OnIdentifierChanged(oldIdentifier, cause); }
protected internal override void _Add(IGeneralMemberUniqueIdentifier key, IConstructorParameterMember <TCtor, TType> value) { if (this._Parent.typeInitializer) { throw new InvalidOperationException(Resources.ObjectStateThrowMessage); } base._Add(key, value); }
protected override void ClearIdentifier() { lock (this.SyncObject) if (this.uniqueIdentifier != null) { this.uniqueIdentifier = null; } }
public TParameter this[IGeneralMemberUniqueIdentifier key] { get { int index = this.Keys.IndexOf(key); if (index == -1) { throw new KeyNotFoundException(); } return(this.Values[index]); } }
bool IIntermediateMemberDictionary.Remove(IGeneralMemberUniqueIdentifier uniqueId, bool dispose) { if (uniqueId == null) { throw new ArgumentNullException(ThrowHelper.GetArgumentName(ArgumentWithException.uniqueId)); } if (uniqueId is TMemberIdentifier) { return(this.Remove((TMemberIdentifier)uniqueId, dispose)); } throw ThrowHelper.ObtainArgumentException(ArgumentWithException.uniqueId, ExceptionMessageId.ValueIsWrongType, ThrowHelper.GetArgumentName(ArgumentWithException.uniqueId), uniqueId.GetType().ToString(), typeof(TMemberIdentifier).ToString()); }
public bool TryGetValue(IGeneralMemberUniqueIdentifier key, out TParameter value) { int index = this.Keys.IndexOf(key); if (index == -1) { value = null; return(false); } value = this.Values[index]; return(true); }
protected override void Dispose(bool disposing) { try { if (this.uniqueIdentifier != null) { this.uniqueIdentifier = null; } this.fieldType = null; } finally { base.Dispose(disposing); } }
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); } }
protected override void Dispose(bool disposing) { try { lock (this.SyncObject) { 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; } this.propertyType = null; } } finally { base.Dispose(disposing); } }
internal CliFieldMember(TFieldParent parent, ICliMetadataFieldTableRow metadataEntry, IGeneralMemberUniqueIdentifier uniqueIdentifier) : base(parent, metadataEntry) { this.uniqueIdentifier = uniqueIdentifier; }
protected internal override void _Add(IGeneralMemberUniqueIdentifier key, TParameter value) { base._Add(key, value); }
bool IControlledDictionary <IGeneralMemberUniqueIdentifier, ILambdaTypeInferredExpressionParameterMember> .TryGetValue(IGeneralMemberUniqueIdentifier key, out ILambdaTypeInferredExpressionParameterMember value) { throw new NotImplementedException(); }
ILambdaTypeInferredExpressionParameterMember IControlledDictionary <IGeneralMemberUniqueIdentifier, ILambdaTypeInferredExpressionParameterMember> .this[IGeneralMemberUniqueIdentifier key] { get { throw new NotImplementedException(); } }
internal FieldMember(CliEnumType parent, ICliMetadataFieldTableRow metadataEntry, IGeneralMemberUniqueIdentifier uniqueIdentifier) : base(parent, metadataEntry, uniqueIdentifier) { }
public bool ContainsKey(IGeneralMemberUniqueIdentifier key) { return(this.delegateType.Parameters.ContainsKey(key)); }