Open sandboxFocus

Class ScalarConstraint

In Metalama, use an aspect or a fabric, and register a reference validator using the Validate(ValidatorDelegate<DeclarationValidationContext>) method. For instance, from the BuildAspect(IAspectBuilder<T>) method of an aspect, call builder.IAspectReceiverSelector<TTarget>.With<TMember>(System.Func<TTarget,System.Collections.Generic.IEnumerable<TMember>>)(...).Validate(ValidatorDelegate<DeclarationValidationContext>).

Namespace: PostSharp.Constraints
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, use an aspect or a fabric, and register a reference validator using the 'IValidatorReceiver.Validate(ValidatorDelegate<DeclarationValidationContext>)' method. For instance, from the 'IAspect<T>.BuildAspect(IAspectBuilder<T>)' method of an aspect, call <c>builder</c>.'!:IAspectReceiverSelector<TTarget>.With<TMember>(System.Func<TTarget,System.Collections.Generic.IEnumerable<TMember>>)'<c>(...)</c>.'IValidatorReceiver.Validate(ValidatorDelegate<DeclarationValidationContext>)'.", false)]
public class ScalarConstraint : Constraint, IScalarConstraint, IConstraint

Constructors

Name Description
ScalarConstraint()

Methods

Name Description
ValidateCode(object)

Extension Methods

See Also