title: How to convert string into Boolean flags in C# LinQ?
body: <p>I have declared the Boolean flags as below. </p>
  
  <pre><code>[Flags]
      public enum StudentStatus
      {
          True = 1,
          False = 2
  
      }
  </code></pre>
  
  <p>I'm getting the value through the DataValues collections in the below line and I want to assign it into the below property. </p>
  
  <pre><code>var student= new Student();
  
  student.Status= StudentInfo.Data.DataValues
                  .Where(m =&gt; m.FieldName.Equals("Status"))
                  .Select(m =&gt; m.StatusValue).SingleOrDefault();
  </code></pre>