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
Post a Comment