示例#1
0
 public static NullableDataSourceInvertedStandardStandard <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, UniqueValidator <TValue>, CustomValidator <TValue[]>, TValue[]> Assert <TValue>(this NullableDataSourceInvertedStandard <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, UniqueValidator <TValue>, TValue[]> source, string description, Func <TValue[], bool> validator)
 => source.Add(new CustomValidator <TValue[]>(description, validator));
示例#2
0
 public static NullableDataSourceInvertedStandardInverted <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValueValidator, TValue[]> Not <TValueValidator, TValue>(this NullableDataSourceInvertedStandard <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValue[]> source, Func <NullableDataSourceInvertedStandard <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValue[]>, NullableDataSourceInvertedStandardStandard <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValueValidator, TValue[]> > validatorFactory)
     where TValueValidator : IValueValidator <TValue[]>
 => validatorFactory.Invoke(source).InvertThree();