特定情况下的本地化

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";
        }
    }
原文地址:https://www.cnblogs.com/lummon/p/4232817.html