BaseCollectionSpecification<T, TType>.

CreateFailedSpecifications(IReadOnlyCollection<FailedSpecification>, int) Method

Summary

Changes error in each element od candidate.

Syntax

[PublicAPI]
[NotNull]
[ItemNotNull]
protected IEnumerable<FailedSpecification> CreateFailedSpecifications(IReadOnlyCollection<FailedSpecification> failedSpecifications, int idx)

Remarks

Method adds prefix with index "[idx] " to each error message.

Attributes

Type Description
PublicAPI
NotNull
ItemNotNull

Parameters

Name Type Description
failedSpecifications IReadOnlyCollection<FailedSpecification> Candidate element FailedSpecification collection.
idx int Current element index.

Return Value

Type Description
IEnumerable<FailedSpecification> New FailedSpecification collection with correct error messages.
GitHub