PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsLess­Than­AttributeCreate­Exception
Open sandboxFocus

LessThanAttribute.CreateException Method

CreateException(Object, String, LocationKind, LocationValidationContext)

Declaration
protected override Exception CreateException(object value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
System.Object value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
Exception
Overrides
RangeAttribute.CreateException(Object, String, LocationKind, LocationValidationContext)