private bool CheckIsNotValueType(BinaryExpression node, Expression expression)
{
var type = GetExpressionType(expression);
if (!TypeSystemServices.IsReferenceType(type) && !TypeSystemServices.IsAnyType(type))
{
Error(CompilerErrorFactory.OperatorCantBeUsedWithValueType(
expression,
GetBinaryOperatorText(node.Operator),
type));
return false;
}
return true;
}