Clone IEnumerable - CSharp System.Collections.Generic

CSharp examples for System.Collections.Generic:IEnumerable

Description

Clone IEnumerable

Demo Code


using System.Collections.Generic;

public class Main{
        public static ICollection<T> Clone<T>(IEnumerable<T> items)
        {//from   ww  w .  j  ava2  s . c  o  m
            return new List<T>(items);
        }
}

Related Tutorials