MetalamaAPI documentationAspect APIMetalama.​Framework.​ValidationIValidator­Receiver<TDeclaration>Select­Many
Open sandboxFocus

IValidatorReceiver<TDeclaration>.SelectMany Method

SelectMany<TMember>(Func<TDeclaration, IEnumerable<TMember>>)

Selects members of the target declaration of the current aspect or fabric with the purpose of adding aspects, annotations or validators to them using e.g. AddAspectIfEligible<TAspect>(EligibleScenarios), Validate(ValidatorDelegate<DeclarationValidationContext>) or ValidateReferences(ValidatorDelegate<ReferenceValidationContext>, ReferenceKinds, Boolean).

Declaration
IValidatorReceiver<TMember> SelectMany<TMember>(Func<TDeclaration, IEnumerable<TMember>> selector)
where TMember : class, IDeclaration
Parameters
Type Name Description
Func<TDeclaration, IEnumerable<TMember>> selector
Returns
Type Description
IValidatorReceiver<TMember>
Type Parameters
Name Description
TMember