Selecting Second element from an Array using LINQ.
Sample1::
string actnum = readLine.Split(',').ElementAt(1);
Sample2:
var actnum1 = readLine.Split(',').Skip(1).Take(1);
Quick Notes for easy understanding. Chapters are on C#.Net,Linq,OOPS,Design Patterns,UML,Tools for development, Databases and many others. - Sid
Subscribe to:
Post Comments (Atom)
Code Formater
| Paste Here Your Source Code | ||||||||||||||
| Source Code Formatting Options | ||||||||||||||
|
||||||||||||||
| Copy Formatted Source Code | ||||||||||||||
| Preview Of Formatted Code |
No comments:
Post a Comment