ContractHelper Class
Collapse the table of content
Expand the table of content

ContractHelper Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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


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

public static class ContractHelper

The ContractHelper type exposes the following members.

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

Windows Phone OS

Supported in: 8.1, 8.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

© 2016 Microsoft