Get all but first from an array

Posted by Stacey on Stack Overflow See other posts from Stack Overflow or by Stacey
Published on 2010-04-09T21:47:42Z Indexed on 2010/04/09 21:53 UTC
Read the original article Hit count: 316

Filed under:
|

Is there a one-line easy linq expression to just get everything from a simple array except the first element?

        for (int i = 1; i <= contents.Length - 1; i++)
            Message += contents[i];

I just wanted to see if it was easier to condense.

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ