简化后代码:
if(A.ToString() == "A" || A.ToString() == "B" || A.ToString() == "C")
if (new[] { "A", "B", "C" }.Contains(A.ToString()))