Interface IScalarAsyncValidators
Represents collection of scalar async validator(s), which is specially optimized for single item collection and immutability.
Inherited Members
Namespace: DevZest.Data.Presenters
Assembly: DevZest.Data.WPF.dll
Syntax
public interface IScalarAsyncValidators : IReadOnlyList<ScalarAsyncValidator>, IReadOnlyCollection<ScalarAsyncValidator>, IEnumerable<ScalarAsyncValidator>, IEnumerable
Remarks
ScalarAsyncValidator class implements IScalarAsyncValidators, so a ScalarAsyncValidator instance can represent both the validator itself and a single item collection of validators. This can improve performance by avoiding object creation.
IScalarAsyncValidators can be sealed as immutable, any change to IScalarAsyncValidators may or may not create a new IScalarAsyncValidators instance. Consumer of IScalarAsyncValidators should always assume it's immutable.
Static class ScalarAsyncValidators is provided to manipulate IScalarAsyncValidators.
Properties
| Name | Description |
|---|---|
| IsSealed | Gets a value indicates whether this collection is sealed. |
| Item[IScalars] | Gets scalar async validator by source scalars. |
Methods
| Name | Description |
|---|---|
| Add(ScalarAsyncValidator) | Adds the specified validator into this collection. |
| Seal() | Seals this collection as immutable. |