Пример #1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("");
            Console.WriteLine("");
            Console.WriteLine("Hello Attributes In C#..");

            Console.WriteLine("");
            Console.WriteLine("");
            Console.WriteLine("-------------------------------------------");
            Console.WriteLine("");
            Console.WriteLine("");

            Myclass.Message_2("This text is shown in all mode.");
            Myclass.Message("In Main function.");
            function1();


            Console.WriteLine("");
            Console.WriteLine("");
            Console.WriteLine("-------------------------------------------");
            Console.WriteLine("");
            Console.WriteLine("");

            //OldMethod();



            Console.ReadKey();
        }
Пример #2
0
 static void function2()
 {
     Myclass.Message("In Function 2");
 }