Example #1
0
        static void Main(string[] args)
        {
            //Conditional Attribute
            Myclass.Message("In Main Fcn");
            Conditional_Attribute.fcn1();
            Console.ReadKey();


            // Obsultue Attribute
            Obsolute_Attribute.Play();
            Obsolute_Attribute.Play1();  // gives warning when u just type the message but gives the error if  u make the second parameter true as in the 3rd calling
            // Obsolute_Attribute.Play2();
        }
 public static void fcn2()
 {
     Myclass.Message("in Function 2 ");
 }
 public static void fcn1()
 {
     Myclass.Message("In function1");
     fcn2();
 }