简化后代码:
if(A.ToString() == "A" || A.ToString() == "B" || A.ToString() == "C")
if (new[] { "A", "B", "C" }.Contains(A.ToString()))
C# if里面同一个变量同时等于多个值的简化操作
原文:https://www.cnblogs.com/Fpack/p/15092673.html