public void CheckStateOk(string st) { switch (st.ToUpper()) { case "FL": case "GA": case "NC": case "SC": case "VA": state = st.ToUpper(); break; default: TestOfStateException ex = new TestOfStateException("State not Part of Atlantic ICW"); throw ex; } }
public void CheckStateOk(string st) { switch(st.ToUpper()) { case "FL": case "GA": case "NC": case "SC": case "VA": state = st.ToUpper(); break; default: TestOfStateException ex = new TestOfStateException("State not Part of Atlantic ICW" ); throw ex; } }