PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsNot­Null­AttributeGet­Error­Message
Open sandboxFocus

NotNullAttribute.GetErrorMessage Method

GetErrorMessage()

Gets unformatted error message as defined by the instance.

Declaration
protected override string GetErrorMessage()
Returns
Type Description
String
Overrides
LocationContractAttribute.GetErrorMessage()
Remarks

See remarks on LocationContractAttribute for information about message parameters.

Use of this method can be overridden by setting ErrorMessage property to non-null value.