Exemple #1
0
 public static DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableRequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], UniqueValidator <Option <TValue> > > Unique <TValue>(this NullableRequiredNullableCollectionStateValidator <TValue> source)
 => source.Add(new UniqueValidator <Option <TValue> >());
Exemple #2
0
 public static DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableRequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], ItemCountValidator <Option <TValue> > > ItemCount <TValue>(this NullableRequiredNullableCollectionStateValidator <TValue> source, int?minimumItems = null, int?maximumItems = null)
 => source.Add(new ItemCountValidator <Option <TValue> >(minimumItems, maximumItems));
Exemple #3
0
 public static DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableRequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], CustomValidator <Option <TValue>[]> > Assert <TValue>(this NullableRequiredNullableCollectionStateValidator <TValue> source, string description, Func <Option <TValue>[], bool> validator)
 => source.Add(new CustomValidator <Option <TValue>[]>(description, validator));