Click or drag to resize

Contract Methods

[This is preliminary documentation and is subject to change.]

The Contract type exposes the following members.

Methods
  NameDescription
Public methodStatic memberRequires(Boolean, String)
Specifies a precondition contract for the enclosing method or property.
Public methodStatic memberRequiresTException(Boolean, String, String)
Specifies a precondition contract for the enclosing method or property, and throws an exception with the provided message if the condition for the contract fails.
Public methodStatic memberRequiresMessage(Boolean, FuncString, String)
Specifies a precondition contract for the enclosing method or property, and displays a message if the condition for the contract fails.
Public methodStatic memberRequiresMessage(Boolean, String, String)
Specifies a precondition contract for the enclosing method or property, and displays a message if the condition for the contract fails.
Public methodStatic memberRequiresMessage(Boolean, FuncString, String, String, String)
Specifies a precondition contract for the enclosing method or property, and displays a message if the condition for the contract fails.
Public methodStatic memberRequiresMessage(Boolean, FuncString, String, String, String, String, String)
Specifies a precondition contract for the enclosing method or property, and displays a message if the condition for the contract fails.
Public methodStatic memberRequiresNotNullT
Specifies a non-null precondition contract for the enclosing method or property.
Top
See Also