public static void Check( bool condition, DoNotUseArg doNotUse = default, [CallerArgumentExpression("condition")] string conditionStr = null, [CallerFilePath] string file = null, [CallerLineNumber] int line = 0) { if (!condition) { CheckSlow(conditionStr, file, line); } }
public static void Check <T1, T2>( bool condition, T1 arg1, T2 arg2, DoNotUseArg doNotUse = default, [CallerArgumentExpression("condition")] string conditionStr = null, [CallerArgumentExpression("arg1")] string argStr1 = null, [CallerArgumentExpression("arg2")] string argStr2 = null, [CallerFilePath] string file = null, [CallerLineNumber] int line = 0) { if (!condition) { CheckSlow(arg1, arg2, conditionStr, argStr1, argStr2, file, line); } }
public static void Check <T1, T2, T3, T4, T5>( bool condition, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, DoNotUseArg doNotUse = default, [CallerArgumentExpression("condition")] string conditionStr = null, [CallerArgumentExpression("arg1")] string argStr1 = null, [CallerArgumentExpression("arg2")] string argStr2 = null, [CallerArgumentExpression("arg3")] string argStr3 = null, [CallerArgumentExpression("arg4")] string argStr4 = null, [CallerArgumentExpression("arg5")] string argStr5 = null, [CallerFilePath] string file = null, [CallerLineNumber] int line = 0) { if (!condition) { CheckSlow(arg1, arg2, arg3, arg4, arg5, conditionStr, argStr1, argStr2, argStr3, argStr4, argStr5, file, line); } }