MetalamaAPI documentationAspect APIMetalama.​Framework.​ValidationValidator<TContext>
Open sandboxFocus

Validator<TContext> Class

A base class for validators.

Inheritance
System.Object
Validator<TContext>
Namespace: Metalama.Framework.Validation
Assembly: Metalama.Framework.dll
Syntax
public abstract class Validator<TContext> : Object, ICompileTimeSerializable where TContext : struct, ValueType
Type Parameters
Name Description
TContext

Type of context i.e. ReferenceValidationContext.

Methods

Name Description
Validate(in TContext)

Validates the current declaration or reference.