Beispiel #1
0
 public static DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableOptionalNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], ItemCountValidator <Option <TValue> > > ItemCount <TValue>(this NullableOptionalNullableCollectionStateValidator <TValue> source, int?minimumItems = null, int?maximumItems = null)
 => source.Add(new ItemCountValidator <Option <TValue> >(minimumItems, maximumItems));
Beispiel #2
0
 public static DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableOptionalNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], CustomValidator <Option <TValue>[]> > Assert <TValue>(this NullableOptionalNullableCollectionStateValidator <TValue> source, string description, Func <Option <TValue>[], bool> validator)
 => source.Add(new CustomValidator <Option <TValue>[]>(description, validator));
Beispiel #3
0
 public static DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableOptionalNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], UniqueValidator <Option <TValue> > > Unique <TValue>(this NullableOptionalNullableCollectionStateValidator <TValue> source)
 => source.Add(new UniqueValidator <Option <TValue> >());
Beispiel #4
0
 public static DataSourceInverted <NullableCollectionNullableDataContainerFactory <NullableOptionalNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], TValueValidator> Not <TValue, TValueValidator>(this NullableOptionalNullableCollectionStateValidator <TValue> source, Func <NullableOptionalNullableCollectionStateValidator <TValue>, DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableOptionalNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], TValueValidator> > validatorFactory)
     where TValueValidator : struct, IValueValidator <Option <TValue>[]>
 => validatorFactory.Invoke(source).InvertOne();