Example #1
0
        private static void PrintOrangeDetails()
        {
            ThreadSafetySingleton oranges = ThreadSafetySingleton.GetInstance;

            oranges.PrintDetails("This is oranges instance!");
        }
Example #2
0
        private static void PrintBananaDetails()
        {
            ThreadSafetySingleton bananas = ThreadSafetySingleton.GetInstance;

            bananas.PrintDetails("This is bananas instance!");
        }