static void Main(string[] args) { MyChass c = new MyChass() { "saitama", "gunma", "ibaraki" }; Console.WriteLine(c); // saitama, gunma, ibaraki Console.ReadKey(); }
internal static void Add(this MyChass c, string text) { c.Push(text); }