public static RecycleList <T> MakeValueEnumerable <TStructEnumerable>(ref TStructEnumerable enumerable) where TStructEnumerable : struct, IEnumerable <T> { RecycleList <T> list = RecycleList <T> .Make(); list.AddRange((TStructEnumerable)enumerable); return(list); }
public static RecycleList <T> Make <TClassEnumerable>(TClassEnumerable enumerable) where TClassEnumerable : class, IEnumerable <T> { RecycleList <T> list = RecycleList <T> .Make(); list.AddRange(enumerable); return(list); }