public ObjectParameterKey(string name, int length, PropertyKeyMetadata metadata) : base(ParameterKeyType.Object, name, length, metadata) { }
public ValueParameterKey(string name, int length, PropertyKeyMetadata metadata) : base(ParameterKeyType.Value, name, length, metadata) { }
protected override void SetupMetadata(PropertyKeyMetadata metadata) { if (metadata is ParameterKeyValueMetadata) { DefaultValueMetadata = (ParameterKeyValueMetadata)metadata; } else { base.SetupMetadata(metadata); } }
protected virtual void SetupMetadata(PropertyKeyMetadata metadata) { if (metadata is DefaultValueMetadata) { DefaultValueMetadata = (DefaultValueMetadata)metadata; } if (metadata is AccessorMetadata) { AccessorMetadata = (AccessorMetadata)metadata; } if (metadata is ValidateValueMetadata) { ValidateValueMetadata = (ValidateValueMetadata)metadata; } if (metadata is ObjectInvalidationMetadata) { ObjectInvalidationMetadata = (ObjectInvalidationMetadata)metadata; } }
public PermutationParameterKey(string name, int length, PropertyKeyMetadata metadata) : base(ParameterKeyType.Permutation, name, length, metadata) { }
/// <summary> /// Creates a value key. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="metadata">The metadata.</param> /// <returns>ParameterKey{``0}.</returns> public static ParameterKey <T> NewWithMetas <T>(PropertyKeyMetadata metadata) { return(NewWithMetas <T>(new[] { metadata })); }