ソースコード
using System.Collections.Generic; public static class IEnumerableExtensions { public static IEnumerable<TSource> StartWith<TSource>( this IEnumerable<TSource> source, params TSource[] value ) { foreach ( var n in value ) { yield return n; } foreach ( var n in source ) { yield return n; } } }