Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
.NET Framework Class Library
System.Diagnostics.Contracts Namespace

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Contains static classes for representing program contracts such as preconditions, postconditions, and invariants.

  ClassDescription
Public classContractContains static methods for representing program contracts such as preconditions, postconditions, and invariants.
Public classContractClassAttributeSpecifies that a separate type contains the code contracts for this type.
Public classContractClassForAttributeSpecifies that a class is a contract for a type.
Public classContractFailedEventArgsProvides methods and data for the ContractFailed event.
Public classContractInvariantMethodAttributeMarks a method as being the invariant method for a class.
Public classContractPublicPropertyNameAttributeSpecifies that a field is to be used in method contracts when the field has less visibility than the method.
Public classContractReferenceAssemblyAttributeSpecifies that an assembly is a reference assembly that contains contracts.
Public classContractRuntimeIgnoredAttributeIdentifies a member that has no run-time behavior.
Public classContractVerificationAttributeInstructs analysis tools to assume the correctness of an assembly, type, or member without performing verification.
Public classPureAttributeIndicates that a type or method is pure, that is, it does not make any visible state changes.
  EnumerationDescription
Public enumerationContractFailureKindSpecifies the type of contract that failed.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker