c# - what type should i specify for lambda expression in method call -


see small code , tell me type should use in method call

method((i => i>7));      public void method(which type should specify here?)     {     // stuff     } 

it seems type func<int, bool>. also, additional parenthesis around lambda useless.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -