Exemple #1
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 #2
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));
Exemple #3
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 #4
0
 public static DataSourceInverted <NullableCollectionNullableDataContainerFactory <NullableRequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], TValueValidator> Not <TValue, TValueValidator>(this NullableRequiredNullableCollectionStateValidator <TValue> source, Func <NullableRequiredNullableCollectionStateValidator <TValue>, DataSourceStandard <NullableCollectionNullableDataContainerFactory <NullableRequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <Option <TValue>[]>, Option <TValue>[], TValueValidator> > validatorFactory)
     where TValueValidator : struct, IValueValidator <Option <TValue>[]>
 => validatorFactory.Invoke(source).InvertOne();