public static DataSourceStandard <CollectionNullableDataContainerFactory <RequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <TValue>[], Option <TValue>[], UniqueValidator <Option <TValue> > > Unique <TValue>(this RequiredNullableCollectionStateValidator <TValue> source) => source.Add(new UniqueValidator <Option <TValue> >());
public static DataSourceStandard <CollectionNullableDataContainerFactory <RequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <TValue>[], Option <TValue>[], ItemCountValidator <Option <TValue> > > ItemCount <TValue>(this RequiredNullableCollectionStateValidator <TValue> source, int?minimumItems = null, int?maximumItems = null) => source.Add(new ItemCountValidator <Option <TValue> >(minimumItems, maximumItems));
public static DataSourceStandard <CollectionNullableDataContainerFactory <RequiredNullableCollectionStateValidator <TValue>, TValue, TValue>, Option <TValue>[], Option <TValue>[], CustomValidator <Option <TValue>[]> > Assert <TValue>(this RequiredNullableCollectionStateValidator <TValue> source, string description, Func <Option <TValue>[], bool> validator) => source.Add(new CustomValidator <Option <TValue>[]>(description, validator));