Exemplo n.º 1
0
 /// <summary>
 /// Try accessing second element or return false
 /// </summary>
 public static bool TrySecond <T>(IEnumerable <T> e, out T value)
 {
     return(Numbered.TryNth(e, 1, out value));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Try accessing third element or return false
 /// </summary>
 public static bool TryThird <T>(IEnumerable <T> e, out T value)
 {
     return(Numbered.TryNth(e, 2, out value));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Try accessing first element or return false
 /// </summary>
 public static bool TryFirst <T>(IEnumerable <T> e, out T value)
 {
     return(Numbered.TryNth(e, 0, out value));
 }