示例#1
0
        static void Main(string[] args)
        {
            MyChass c = new MyChass()
            {
                "saitama", "gunma", "ibaraki"
            };

            Console.WriteLine(c);   // saitama, gunma, ibaraki

            Console.ReadKey();
        }
示例#2
0
 internal static void Add(this MyChass c, string text)
 {
     c.Push(text);
 }