I have a string array in c#.Now as per my requirement i have to get the last ,second last and one element before second last elements in string but i am not getting how to get it. Here is my string array.With Last() i am able to get the last element but second last and before second last i am not getting to find out.
string[] arrstr = str.Split(' ');
With .Last()
i am able to get the last element but rest of the elements i am not able to get.
Please help me..