Wednesday, January 22, 2014

Collections take IEnumerable in the constructor



            Queue<string> q = new Queue<string>();
            q.Enqueue("sdfsdf");
            Stack<string> stack = new Stack<string>(q);


No comments:

Post a Comment