Пример #1
0
    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);
    }
Пример #2
0
    public static RecycleList <T> Make <TClassEnumerable>(TClassEnumerable enumerable) where TClassEnumerable : class, IEnumerable <T>
    {
        RecycleList <T> list = RecycleList <T> .Make();

        list.AddRange(enumerable);
        return(list);
    }