Open sandboxFocus

Class Validator<TContext>

A base class for validators.

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

Type of context i.e. ReferenceValidationContext.

Methods

Name Description
Validate(in TContext)

Validates the current declaration or reference.