Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Problems
- {
- using System;
- using System.Collections.Generic;
- internal class Program
- {
- public static void Main(string[] args)
- {
- var a = new
- {
- Data = new List<string> { "a", "b", "c" }.GetEnumerator()
- };
- while (a.Data.MoveNext())
- {
- Console.WriteLine(a.Data.Current);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment