Show / Hide Table of Contents

Interface IScalarAsyncValidators

Represents collection of scalar async validator(s), which is specially optimized for single item collection and immutability.

Inherited Members
System.Collections.Generic.IReadOnlyList<DevZest.Data.Presenters.ScalarAsyncValidator>.Item[System.Int32]
System.Collections.Generic.IReadOnlyCollection<DevZest.Data.Presenters.ScalarAsyncValidator>.Count
System.Collections.Generic.IEnumerable<DevZest.Data.Presenters.ScalarAsyncValidator>.GetEnumerator()
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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest