示例#1
0
文件: Ordinal.cs 项目: yorishige/Misc
 public static T ElementAtOrDefault <T>(this IEnumerable <T> source, Ordinal ordinal)
 {
     return(source.ElementAtOrDefault(ordinal.ToInt32() - 1));
 }
示例#2
0
文件: Ordinal.cs 项目: yorishige/Misc
 public static IEnumerable <T> SkipTo <T>(this IEnumerable <T> source, Ordinal ordinal)
 {
     return(source.Skip(ordinal.ToInt32() - 1));
 }