code_junkie

c# List manipulation

Nov 14th, 2011
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. List<String> text
  2.  
  3. List<String> subList = /* all elements within text bar the first 2*/
  4.  
  5. List<String> subList = text.GetRange(2, text.Count - 2);
  6.  
  7. subList = text.Skip(2).ToList()
Add Comment
Please, Sign In to add comment