private string MethodCallExpression(Expression exp, ref MemberType type, bool isTure)
{
MethodCallExpression mce = (MethodCallExpression)exp;
string methodName = mce.Method.Name;
if (methodName == "Contains")
{
return Contains(methodName, mce, isTure);
}
else if (methodName == "StartsWith")
{
return StartsWith(methodName, mce, isTure);
}
else if (methodName == "EndsWith")
{
return EndWith(methodName, mce, isTure);
}
else if (methodName == "ToString")
{
type = MemberType.Value;
return MethodToString(methodName, mce, ref type);
}
else if (methodName == "IsNullOrEmpty")
{
type = MemberType.Value;
return IsNullOrEmpty(methodName, mce, isTure);
}
else if (methodName == "Equals")
{
return Equals(methodName, mce);
}
else
{
type = MemberType.Value;
return ParMethodTo(methodName, mce, ref type);
}
}