c# - Translate anonymous function -



c# - Translate anonymous function -

if have function parameter of type func<bool,bool> know can function has 1 parameter of type bool , returns bool too.

i saw people pass here lambda : (x => x) , mean? how can translated normal function?

it can compared regular method:

public bool somemethod(bool x) { homecoming x; }

effectively returning same variable provided lambda expression.

c# lambda

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -