LINQ in Action roller

Expression.Call(typeof(Console),"WriteLine") = ThereIsNoSuchMethod

Hi, I've got the following issue. It seems that the overload of Expession.Call for static methods cause a wrong exception. Maybe the parameter check has got a wrong implementation. Could you clarify that, please. Benjamin static void Main() { ParameterExpression param = Expression .Parameter( typeof ( String ), "text" ); //var mi = typeof(Console).GetMethod("WriteLine", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(String) }, null); //MethodCallExpression method = Expression.Call(mi, Read More...
Published Monday, June 30, 2008 9:24 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication