static void ThrowIfOperandNull(ContextualOperand left, ContextualOperand right) { if ((object)left == null && (object)right == null) { throw new ArgumentNullException("operand", "You should cast null to Operand base type because null can't be ContextualOperand"); } }
internal static ContextualOperand SetLeakedState(ContextualOperand operand, bool state) { if ((object)operand != null) { operand.LeakedState = state; } return(operand); }
internal static void SetLeakedState(ContextualOperand[] operands, bool state) { if (operands != null) { for (int i = 0; i < operands.Length; i++) { OperandExtensions.SetLeakedState(operands[i], state); } } }
static void ThrowIfOperandNull(ContextualOperand left, ContextualOperand right) { if ((object)left == null && (object)right == null) throw new ArgumentNullException("operand", "You should cast null to Operand base type because null can't be ContextualOperand"); }
internal static ContextualOperand SetLeakedState(ContextualOperand operand, bool state) { if ((object)operand != null) operand.LeakedState = state; return operand; }