IEnumerable extension for get second and third element
using System.Collections.Generic; using System.Linq; public static class ListExtensions { public static T Second<T>(this IEnumerable<T> items) { return items.Skip(1).First(); } public static T Third<T>(this IEnumerable<T> items) { return items.Skip(2).First(); } }