Beispiel #1
0
        public static MeuSingleton GetInstance()
        {
            if (_self == null)
            {
                _self = new MeuSingleton();
            }

            return(_self);
        }
Beispiel #2
0
        public static void Testar()
        {
            var singleton = MeuSingleton.GetInstance();

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