Class AttributeInfoValidationExtensions
Utility extensions to validate AttributeInfo instances
public static class AttributeInfoValidationExtensions
- Inheritance
-
AttributeInfoValidationExtensions
- Inherited Members
Remarks
These are implemented as extension methods to allow CallerArgumentExpressionAttribute to contain the name/expression of the attribute in source that is validated. The "this" value of an actual member method does not allow for that.
Methods
- ThrowIfInvalid(AttributeInfo, string?)
Validates an AttributeInfo
- ThrowIfInvalid(AttributeInfo, AttributeAllowedOn, AttributeArgKind, string?)
Validates an AttributeInfo
- ThrowIfInvalid(AttributeInfo, FunctionAttributeIndex, string?)
Throws an exception if the attribute is invalid for the given index