Classes
ComponentInternalAttribute
In Metalama, use CanOnlyBeUsedFromAttribute.
Constraint
In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>)
or ValidateReferences(ReferenceValidator) 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>>)(...)
.ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).
ExperimentalAttribute
In Metalama, use ExperimentalAttribute.
InternalImplementAttribute
In Metalama, use InternalOnlyImplementAttribute.
NamingConventionAttribute
In Metalama, use DerivedTypesMustRespectNamingConventionAttribute
ParameterValueConstraint
Not implemented yet in Metalama, and there is currently no plan to do it.
ProtectedAttribute
Not implemented yet in Metalama, but it will be.
ReferenceConstraint
In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>)
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>>)(...)
.ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).
ReferentialConstraint
In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>)
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>>)(...)
.ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).
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>).
Interfaces
IConstraint
In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>)
or 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>>)(...)
.ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).
IReferentialConstraint
In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>)
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>>)(...)
.ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).
IScalarConstraint
In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences(ReferenceValidator) 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>).