Contract::Invariant Method

 

Specifies a contract for an enclosing method or property.

Namespace:   System.Diagnostics.Contracts
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticInvariant(Boolean)

Specifies an invariant contract for the enclosing method or property.

System_CAPS_pubmethodSystem_CAPS_staticInvariant(Boolean, String^)

Specifies an invariant contract for the enclosing method or property, and displays a message if the condition for the contract fails.

Return to top
Show: