特定情况下的本地化

class Program
    {
        static void Main(string[] args)
        {
            PP p = new PP(null);
            Console.Read();
        }
    }

    public class PP : LocalizedText
    {
        public PP(string tx)
            : base(ref tx)
        {
            Console.WriteLine(tx);
        }
    }

    public class LocalizedText
    {
        public LocalizedText(ref string text1)
        {
            text1 = "English";
        }
    }

 

posted @ 2015-01-19 00:46  真幻de现实  阅读(117)  评论(0编辑  收藏  举报