Exemplo n.º 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;
 }
 public bool Equals(IStateDescriptor other)
 => other is DefaultedCollectionStateDescriptor defaultedCollectionStateDescriptor && Equals(defaultedCollectionStateDescriptor);
 public bool Equals(IStateDescriptor other)
 => other is OptionalCollectionStateDescriptor optionalCollectionStateDescriptor && Equals(optionalCollectionStateDescriptor);
Exemplo n.º 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));
 }
 public bool Equals(IStateDescriptor other)
 => other is RequiredCollectionStateDescriptor requiredCollectionStateDescriptor && Equals(requiredCollectionStateDescriptor);
 public bool Equals(IStateDescriptor other)
 => Equals(other as CollectionStateDescriptor);