private void CheckParameters() { if (this.parameters == null) { this.parameters = new MetadatumDefinitionParameterCollection(this); } }
/// <summary> /// Disposes the <see cref="MetadatumDefinition"/>. /// </summary> public void Dispose() { if (this.parameters != null) { this.parameters.Dispose(); this.parameters = null; } this.parent = null; this.type = null; this.wrappedAttribute = null; }
public virtual void Dispose() { try { this.Owner = null; base.Value = default(T); } finally { GC.SuppressFinalize(this); } }
/// <summary> /// Creates a new <see cref="MetadatumDefinitionNamedParameter{T}"/> /// instance with the <paramref name="name"/> and <paramref name="value"/> /// provided. /// </summary> /// <param name="name">The name of the <see cref="MetadatumDefinitionNamedParameter{T}"/> /// relative to the property that is set on the custom attribute.</param> /// <param name="value">The <typeparamref name="T"/> instance /// which the <see cref="MetadatumDefinitionNamedParameter{T}"/> is typed as.</param> /// <param name="owner">The <see cref="MetadatumDefinitionParameterCollection"/> /// which contains the <see cref="MetadatumDefinitionNamedParameter{T}"/>.</param> /// <param name="valueType">The <see cref="IType"/> /// which represents the type of <paramref name="value"/> /// within the current typing model.</param> internal MetadatumDefinitionNamedParameter(string name, T value, MetadatumDefinitionParameterCollection owner, IType valueType) : base(value, owner, valueType) { this.name = name; }
public MetadatumDefinitionExpressionParameter(IExpression value, MetadatumDefinitionParameterCollection owner) { this.Value = value; this.Owner = owner; }
/// <summary> /// Creates a new <see cref="MetadatumDefinitionParameter{T}"/> with the /// <paramref name="value"/> provided. /// </summary> /// <param name="value">The <typeparamref name="T"/> instance /// which the <see cref="MetadatumDefinitionParameter{T}"/> is typed as.</param> /// <param name="owner">The <see cref="MetadatumDefinitionParameterCollection"/> /// which contains the <see cref="MetadatumDefinitionParameter{T}"/>.</param> /// <param name="valueType">The <see cref="IType"/> /// which represents the type of <paramref name="value"/> /// within the current typing model.</param> internal MetadatumDefinitionParameter(T value, MetadatumDefinitionParameterCollection owner, IType valueType) : base(value) { this.valueType = valueType; this.Owner = owner; }