this question has answer here:
- is linq or lambda? 2 answers
can explain me difference between lambda , linq?
please don't point me out other stackexchange answers or trivial explanations, i've checked of them , they're orribly confusing.
i've used bit of linq (i believe?) in these days expressions (merely invented example)
var result = object.where(e => e.objectparameter > 5).any()
which, should return in result boolean says if there element >5.
ok, then, linq , lambda?
is linq library, set of functions, developed c# team include with
using system.linq;
which gives powered "for loop" many methods avoid getting hands "dirty"? (first, firstordefault, any.... etc)
and lambda? same above? it's language on it's own? , how differs linq? how recognize 1 or another?
thanks
language-integrated query (linq) set of features introduced in visual studio 2008 extends powerful query capabilities language syntax of c# , visual basic
a lambda expression anonymous function can use create delegates or expression tree types. using lambda expressions, can write local functions can passed arguments or returned value of function calls.
linq uses lambda expression in order execute of functionalities.
example:
new [] { "dan", "yossi", "ben" }.where(item => item.length == 3);
lambda expression: item => item.length == 3
linq: .where(..)
Comments
Post a Comment