PostSharp5.0/API Reference/Post­Sharp.​Constraints Namespace/Naming­Convention­Attribute Class/Naming­Convention­Attribute Methods

NamingConventionAttribute Methods

The NamingConventionAttribute type exposes the following members.

Methods
  NameDescription
Public methodValidateCode
Validates the element of code to which the constraint is applied.
(Overrides ScalarConstraint.ValidateCode(Object).)
Public methodValidateConstraint
Validates the fact that the constraint has been applied on a valid element of code. When this method returns false, the constraint is silently ignored.
(Overrides Constraint.ValidateConstraint(Object).)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also