public class Test {
public bool Case1 { get; set; }
public bool Case2 { get; set; }
public bool Case3 { get; set; }
}
Now if I get input as Case1 as string
public static void Main(String[] args) {
string test = "Case1";
}
In this particular case if I get input as Case1, I need to assign value of Test.Case1 as true.