示例#1
0
 public ObjectParameterKey(string name, int length, PropertyKeyMetadata metadata) : base(ParameterKeyType.Object, name, length, metadata)
 {
 }
示例#2
0
 public ValueParameterKey(string name, int length, PropertyKeyMetadata metadata) : base(ParameterKeyType.Value, name, length, metadata)
 {
 }
示例#3
0
 protected override void SetupMetadata(PropertyKeyMetadata metadata)
 {
     if (metadata is ParameterKeyValueMetadata)
     {
         DefaultValueMetadata = (ParameterKeyValueMetadata)metadata;
     }
     else
     {
         base.SetupMetadata(metadata);
     }
 }
示例#4
0
 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;
     }
 }
示例#5
0
 public PermutationParameterKey(string name, int length, PropertyKeyMetadata metadata) : base(ParameterKeyType.Permutation, name, length, metadata)
 {
 }
示例#6
0
 /// <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 }));
 }