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"); }