示例#1
0
 public static NullableDataSourceInvertedInverted <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, TValueValidator, TValue[]> Not <TValueValidator, TValue>(this NullableDataSourceInverted <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, TValue[]> source, Func <NullableDataSourceInverted <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, TValue[]>, NullableDataSourceInvertedStandard <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, TValueValidator, TValue[]> > validatorFactory)
     where TValueValidator : IValueValidator <TValue[]>
 => validatorFactory.Invoke(source).InvertTwo();
示例#2
0
 public static NullableDataSourceInvertedStandard <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, UniqueValidator <TValue>, TValue[]> Unique <TValue>(this NullableDataSourceInverted <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, TValue[]> source)
 => source.Add(new UniqueValidator <TValue>());
示例#3
0
 public static NullableDataSourceInvertedStandard <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, CustomValidator <TValue[]>, TValue[]> Assert <TValue>(this NullableDataSourceInverted <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, TValue[]> source, string description, Func <TValue[], bool> validator)
 => source.Add(new CustomValidator <TValue[]>(description, validator));
示例#4
0
 public static NullableDataSourceInvertedStandard <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValue[]> ItemCount <TValue>(this NullableDataSourceInverted <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, TValue[]> source, int?minimumItems = null, int?maximumItems = null)
 => source.Add(new ItemCountValidator <TValue>(minimumItems, maximumItems));
示例#5
0
 public static NullableDataSourceInvertedInverted <RequiredCollectionNullableStateValidator <TValue>, UniqueValidator <TValue>, TValueValidator, TValue[]> Not <TValueValidator, TValue>(this NullableDataSourceInverted <RequiredCollectionNullableStateValidator <TValue>, UniqueValidator <TValue>, TValue[]> source, Func <NullableDataSourceInverted <RequiredCollectionNullableStateValidator <TValue>, UniqueValidator <TValue>, TValue[]>, NullableDataSourceInvertedStandard <RequiredCollectionNullableStateValidator <TValue>, UniqueValidator <TValue>, TValueValidator, TValue[]> > validatorFactory)
     where TValueValidator : IValueValidator <TValue[]>
 => validatorFactory.Invoke(source).InvertTwo();
示例#6
0
 public static NullableDataSourceInvertedStandard <RequiredCollectionNullableStateValidator <TValue>, UniqueValidator <TValue>, CustomValidator <TValue[]>, TValue[]> Assert <TValue>(this NullableDataSourceInverted <RequiredCollectionNullableStateValidator <TValue>, UniqueValidator <TValue>, TValue[]> source, string description, Func <TValue[], bool> validator)
 => source.Add(new CustomValidator <TValue[]>(description, validator));