title: Assigning input string value as datamember for example (C#)
body: <pre><code>public class Test {
      public bool Case1 { get; set; }
      public bool Case2 { get; set; }
      public bool Case3 { get; set; }
  }
  </code></pre>
  <p>Now if I get input as Case1 as string</p>
  <pre><code>public static void Main(String[] args) {
      string test = &quot;Case1&quot;;
  }
  </code></pre>
  <p>In this particular case if I get input as Case1, I need to assign value of Test.Case1 as true.</p>