I'm trying to assign multiple abbreviations from a text box to a string variable but I can't figure out how. This is what I have so far.
string abbreviation = | "S" | "HC" | "HNC";
if (txtEmployeeType.Text != abbreviation)
It gives me an error under the first Or operator. What I'm trying to do is say that if someone doesn't type an S, HC, or HNC into the Employee Type text box, an error message box will show. But I'm just trying to figure out how to type the string variable.