Condividi tramite


ContractHelper Classe

Definizione

Attenzione

Use the ContractHelper class in the System.Runtime.CompilerServices namespace instead.

Fornisce metodi usati dal rewriter binario per gestire gli errori di contratto.

public ref class ContractHelper abstract sealed
public static class ContractHelper
[System.Obsolete("Use the ContractHelper class in the System.Runtime.CompilerServices namespace instead.")]
public static class ContractHelper
type ContractHelper = class
[<System.Obsolete("Use the ContractHelper class in the System.Runtime.CompilerServices namespace instead.")>]
type ContractHelper = class
Public Class ContractHelper
Ereditarietà
ContractHelper
Attributi

Metodi

RaiseContractFailedEvent(ContractFailureKind, String, String, Exception)
Obsoleti.

Utilizzato dal rewriter binario per attivare il comportamento dell'errore predefinito.

TriggerFailure(ContractFailureKind, String, String, String, Exception)
Obsoleti.

Attiva il comportamento dell'errore predefinito.

Si applica a