Ejemplo n.º 1
0
        public static MeuSingleton GetInstance()
        {
            if (_self == null)
            {
                _self = new MeuSingleton();
            }

            return(_self);
        }
Ejemplo n.º 2
0
        public static void Testar()
        {
            var singleton = MeuSingleton.GetInstance();

            Console.WriteLine(singleton.ToString());
        }