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
public interface ILocationValidationAspect<T> : ILocationValidationAspect, IAspect
Type Parameters
Name Description

Type of values validated by the current aspect.


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

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