示例#1
0
 public static NullableDataSourceStandardInvertedStandard <OptionalCollectionStateValidator <TValue>, ItemCountValidator <TValue>, UniqueValidator <TValue>, CustomValidator <TValue[]>, TValue[]> Assert <TValue>(this NullableDataSourceStandardInverted <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 NullableDataSourceStandardInvertedInverted <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValueValidator, TValue[]> Not <TValueValidator, TValue>(this NullableDataSourceStandardInverted <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValue[]> source, Func <NullableDataSourceStandardInverted <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValue[]>, NullableDataSourceStandardInvertedStandard <OptionalCollectionStateValidator <TValue>, UniqueValidator <TValue>, ItemCountValidator <TValue>, TValueValidator, TValue[]> > validatorFactory)
     where TValueValidator : IValueValidator <TValue[]>
 => validatorFactory.Invoke(source).InvertThree();