Пример #1
0
        static void Main()
        {
            MethodParameters methodParameters = new MethodParameters();

            methodParameters.GetUserDetails();
            methodParameters.DisplayUserDetails();
            Console.Read();
        }
Пример #2
0
        static void Main()
        {
            //to call non - static method
            MethodParameters methodParameters = new MethodParameters();

            methodParameters.get_details();
            methodParameters.display();
            Console.ReadLine();
        }