title: Counting the number of Enum parameters
body: <p>I am new to enums in C#. I am passing multiple enum values as a argument to a method. Inside the method i want to know, how values do i have.</p>
  
  <p>Let me Explain.</p>
  
  <pre><code>Class A
  {
          [Flags]
          public enum days
          {
              sunday =1,
              monday =2,
              tuesday= 4
          }
  static void Main(string[] args)
          {
              dummy(days.sunday|days.monday);
              dummy(days.sunday);
  
          }
  
  public static void dummy(days Daysofweek)
          {
              if(\* Daysofweek is oly sunday*/){/*some function*/}
              else if(\* Daysofweek is sunday and monday*/){/*some other  function*/}
              Console.WriteLine(Daysofweek.ToString());
  
          }
  }
  </code></pre>
  
  <p>'''</p>
  
  <p>All i want to achieve is "if there is only one value in the argument then do something, else if there are more than one value then do some thing else".</p>