ContractHelper Class

.NET Framework 4.5

Provides methods that the binary rewriter uses to handle contract failures.

System.Object
  System.Runtime.CompilerServices.ContractHelper

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public static class ContractHelper

The ContractHelper type exposes the following members.

  NameDescription
Public methodStatic memberRaiseContractFailedEventUsed by the binary rewriter to activate the default failure behavior.
Public methodStatic memberTriggerFailureTriggers the default failure behavior.
Top

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft