AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter18/Listing18.24.UsingConditionalAttributeToEliminateACall.cs
#define CONDITION_A

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter18.Listing18_24
{
    using System;
    using System.Diagnostics;

    public class Program
    {
        public static void Main()
        {
            Console.WriteLine("Begin...");
            MethodA();
            MethodB();
            Console.WriteLine("End...");
        }

        [Conditional("CONDITION_A")]
        static void MethodA()
        {
            Console.WriteLine("MethodA() executing...");
        }

        [Conditional("CONDITION_B")]
        static void MethodB()
        {
            Console.WriteLine("MethodB() executing...");
        }
    }
}
