System\Dynamic\Utils\TypeUtils.cs (15)
293if (AreEquivalent(source, dest))
299if (IsNullableType(source) && AreEquivalent(dest, GetNonNullableType(source)))
304if (IsNullableType(dest) && AreEquivalent(source, GetNonNullableType(dest)))
457if (AreEquivalent(destGen, iface))
484if (AreEquivalent(sourceGen, iface))
561if (AreEquivalent(sourceArgument, destArgument))
663if (!AreEquivalent(left, right))
679AreEquivalent(source, destination) // identity conversion
709if (AreEquivalent(nnExprType, convertFrom) && AreEquivalent(nnConvType, convertToType))
725if ((mi.Name == "op_Implicit" || mi.Name == "op_Explicit") && AreEquivalent(mi.ReturnType, typeTo))
728if (pis.Length == 1 && AreEquivalent(pis[0].ParameterType, typeFrom))
872if (type.IsConstructedGenericType && AreEquivalent(type.GetGenericTypeDefinition(), definition))
919if (AreEquivalent(dest, src))
928AreEquivalent(type, subType) || subType.IsSubclassOf(type);
System\Linq\Expressions\BinaryExpression.cs (12)
294!TypeUtils.AreEquivalent(method.GetParametersCached()[0].ParameterType.GetNonRefType(), Left.Type);
318Debug.Assert(method == null && TypeUtils.AreEquivalent(type, right.Type) && nodeType == ExpressionType.Coalesce);
343TypeUtils.AreEquivalent(right, left) &&
346TypeUtils.AreEquivalent(method.ReturnType, left.GetNonNullableType());
725if (method == null && !TypeUtils.AreEquivalent(leftType, rightType))
858return TypeUtils.AreEquivalent(left, right) &&
860TypeUtils.AreEquivalent(pms[1].ParameterType, right.GetNonNullableType());
1288returnType = (left.Type.IsNullableType() && TypeUtils.AreEquivalent(method.ReturnType, left.Type.GetNonNullableType())) ? left.Type : method.ReturnType;
1294returnType = (left.Type.IsNullableType() && TypeUtils.AreEquivalent(method.ReturnType, left.Type.GetNonNullableType())) ? left.Type : method.ReturnType;
1409if (!TypeUtils.AreEquivalent(method.ReturnType, right.Type))
1557if (!TypeUtils.AreEquivalent(mi.ReturnType, left.Type))
1563if (!TypeUtils.AreEquivalent(pms[0].ParameterType, method.ReturnType))