【C#】独自のクラスでコレクション初期化子を使用できるようにする

概要 using System; using System.Collections; using System.Collections.Generic; class MyList : IEnumerable { private List<int> mList = new List<int>(); public void Add( int item ) { mList.Add( item ); } public IEnumerator GetEnumerator() { throw new NotImplementedException(); } } class Program { static…</int></int>