Class StaticMethodValidator
Checks whether the method to execute is static.
public class StaticMethodValidator : IMethodValidator
- Inheritance
-
StaticMethodValidator
- Implements
- Inherited Members
Constructors
StaticMethodValidator(string)
Construct a StaticMethodValidator.
public StaticMethodValidator(string failMessage)
Parameters
failMessage
stringThe error message to output in case the validation fails.
Methods
Validate(MethodInfo)
Determines whether a method to execute is static and throws an InvalidOperationException otherwise.
public void Validate(MethodInfo method)
Parameters
method
MethodInfoThe method to validate.