ConstantExpression must be the same type of the MemberExpression. The value in this example is a string, which is converted before creating the ConstantExpression instance.
private static ConstantExpression GetConstant(Type type, string value)
{
// Discover the type, convert it, and create Co...