PostSharp.ILAPI ReferencePost­Sharp.​AspectsILocation­Validation­Aspect<T>
Open sandboxFocus

ILocationValidationAspect<T> Interface

Runtime semantics of an aspect that, when applied on a location (field, property, or parameter), validates the value assigned to this location using method ValidateValue(T, String, LocationKind, LocationValidationContext), and throws the exception returned by this method if any.

Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
[HasInheritedAttribute]
public interface ILocationValidationAspect<T> : ILocationValidationAspect, IAspect
Type Parameters
Name Description
T

Type of values validated by the current aspect.

Methods

Name Description
ValidateValue(T, String, LocationKind, LocationValidationContext)

Validates the value being assigned to the location to which the current aspect has been applied.