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

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

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