private static void SingletoneImp() { Console.WriteLine("------Singletone-------"); Singletone singletone = Singletone.GetObject(); singletone.Length = 10; singletone.Width = 5; Console.WriteLine($"Area: { singletone.GetArea() }"); }