LINQ - Array Initializer
By [)ia6l0 iii
We can use LINQ to initialize elements of an array with a specified range of values. The following statement initializes an interger array with values of 20-29.
int sampleIntegerArray = Enumerable.Range(20, 10).ToArray();
The LinQ SKIP operator lets you skip the results you want, and take the rest. See below for an code sample.
The LinQ Take operator lets you take only the results you want. See below for an code sample.
Use LinQ's Except extension on DataTable to find out the Difference between two DataTables.
Quickly find out the intersection of two datatables thruough the Intersect Extension.
LINQ - Array Initializer (722 Views)