title: Enum flag attribute C#
body: <p>i'be looked some same topics but havn't find what i'm looking for
  I should use flag enum flag atribute and check if my data is in one of the collections of this enum
  For example, enum:</p>
  
  <pre><code>[Flags]
  private enum MyEnum {
  Apple,
  Orange,
  Tomato,
  Potato
  Melon,
  Watermelon,
  
  Fruit = Apple | Orange,
  Vegetable = Tomato | Potato,
  Berry = Melon | Watermelon,
  }
  </code></pre>
  
  <p>In the method i should check a input data. How can i do it? </p>
  
  <pre><code>private void Checking(string data){
  if(MyEnum.Fruit contains data) MessageBox.Show("Fruit");
  if(MyEnum.Vegetable contains data) MessageBox.Show("Vegetables");
  if(MyEnum.Berry contains data) MessageBox.Show("Berry");
  }
  </code></pre>
  
  <p>What should be instead of "contains data"?</p>
  
  <p>UPDATE</p>
  
  <pre><code>private void ZZZ(){
  Cheching("Apple");
  }
  </code></pre>