Ejemplo n.º 1
0
        public static ChocolateBoiler GetInstace()
        {
            if (Instance == null)
            {
                lock (chocolateBoilerLock)
                {
                    if (Instance == null)
                    {
                        Console.WriteLine($"Instance ==> NULL");
                        Instance = new ChocolateBoiler();
                    }
                }
            }

            return(Instance);
        }