Example #1
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> >());
Example #2
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));
Example #3
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));