コード例 #1
0
 public DataDescriptor(Type propertyType, IStateDescriptor stateDescriptor, IValueDescriptor[] valueDescriptors, Option <MappedFromDescriptor> mappingDescriptor)
 {
     PropertyType      = propertyType ?? throw new ArgumentNullException(nameof(propertyType));
     StateDescriptor   = stateDescriptor ?? throw new ArgumentNullException(nameof(stateDescriptor));
     ValueDescriptors  = valueDescriptors ?? throw new ArgumentNullException(nameof(valueDescriptors));
     MappingDescriptor = mappingDescriptor;
 }
コード例 #2
0
 public bool Equals(IStateDescriptor other)
 => other is DefaultedCollectionStateDescriptor defaultedCollectionStateDescriptor && Equals(defaultedCollectionStateDescriptor);
コード例 #3
0
 public bool Equals(IStateDescriptor other)
 => other is OptionalCollectionStateDescriptor optionalCollectionStateDescriptor && Equals(optionalCollectionStateDescriptor);
コード例 #4
0
 public DataDescriptor(Type propertyType, IStateDescriptor stateDescriptor, IValueDescriptor[] valueDescriptors)
 {
     PropertyType     = propertyType ?? throw new ArgumentNullException(nameof(propertyType));
     StateDescriptor  = stateDescriptor ?? throw new ArgumentNullException(nameof(stateDescriptor));
     ValueDescriptors = valueDescriptors ?? throw new ArgumentNullException(nameof(valueDescriptors));
 }
コード例 #5
0
 public bool Equals(IStateDescriptor other)
 => other is RequiredCollectionStateDescriptor requiredCollectionStateDescriptor && Equals(requiredCollectionStateDescriptor);
コード例 #6
0
 public bool Equals(IStateDescriptor other)
 => Equals(other as CollectionStateDescriptor);