14 ContractHelper.InternalContractFailed +=
value;
18 ContractHelper.InternalContractFailed -=
value;
22 [Conditional(
"DEBUG")]
23 [Conditional(
"CONTRACTS_FULL")]
32 [Conditional(
"DEBUG")]
33 [Conditional(
"CONTRACTS_FULL")]
42 [Conditional(
"DEBUG")]
43 [Conditional(
"CONTRACTS_FULL")]
52 [Conditional(
"DEBUG")]
53 [Conditional(
"CONTRACTS_FULL")]
62 [Conditional(
"CONTRACTS_FULL")]
68 [Conditional(
"CONTRACTS_FULL")]
84 [Conditional(
"CONTRACTS_FULL")]
85 public static void Ensures(
bool condition)
90 [Conditional(
"CONTRACTS_FULL")]
96 [Conditional(
"CONTRACTS_FULL")]
102 [Conditional(
"CONTRACTS_FULL")]
124 [Conditional(
"CONTRACTS_FULL")]
130 [Conditional(
"CONTRACTS_FULL")]
142 if (predicate ==
null)
162 if (predicate ==
null)
168 if (!predicate(
item))
182 if (predicate ==
null)
202 if (predicate ==
null)
216 [Conditional(
"CONTRACTS_FULL")]
226 for (
int i = 0; i <
stackTrace.FrameCount; i++)
static void Assert([DoesNotReturnIf(false)] bool condition)
static void Assume([DoesNotReturnIf(false)] bool condition)
static void Assume([DoesNotReturnIf(false)] bool condition, string? userMessage)
static void Requires(bool condition)
static void Invariant(bool condition, string? userMessage)
static void Assert([DoesNotReturnIf(false)] bool condition, string? userMessage)
static T ValueAtReturn< T >(out T value)
static void Ensures(bool condition)
static void EnsuresOnThrow< TException >(bool condition)
static T OldValue< T >(T value)
static bool ForAll< T >(IEnumerable< T > collection, Predicate< T > predicate)
static bool Exists(int fromInclusive, int toExclusive, Predicate< int > predicate)
static void Invariant(bool condition)
static bool Exists< T >(IEnumerable< T > collection, Predicate< T > predicate)
static void AssertMustUseRewriter(ContractFailureKind kind, string contractKind)
static void EndContractBlock()
static void ReportFailure(ContractFailureKind failureKind, string userMessage, string conditionText, Exception innerException)
static void Requires(bool condition, string? userMessage)
static bool ForAll(int fromInclusive, int toExclusive, Predicate< int > predicate)
static ? EventHandler< ContractFailedEventArgs > ContractFailed
static void Requires< TException >(bool condition)
static void Ensures(bool condition, string? userMessage)
static void TriggerFailure(ContractFailureKind kind, string? displayMessage, string? userMessage, string? conditionText, Exception? innerException)
static ? string RaiseContractFailedEvent(ContractFailureKind failureKind, string? userMessage, string? conditionText, Exception? innerException)
static string MustUseCCRewrite
static string Arg_EnumIllegalVal
static string Format(string resourceFormat, object p1)
static string Argument_ToExclusiveLessThanFromExclusive