I was playing around with your demo project and substituted static string text by a variable, so for example:
string test = "A";
var res6 = from grp in groups
where grp.Name.StartsWith(test) <-- NOTE: Here I replaced static text with test variable
select new { grp.Name, MemberCount = grp.Members.Length };
Now I get the error 'System.NullReferenceException was unhandled', the error occurs at case statement:
case "StartsWith":
{
ConstantExpression c = m.Arguments[0] as ConstantExpression;
sb.AppendFormat("{0}={1}*", GetFieldName(o.Member), c.Value); <--- EXCEPTION: on variable 'c'
break;
}
By the way thanks for this Linq class!! Excellent work!
Yours sincerely,
Evert Wiesenekker