110,552
社区成员
发帖
与我相关
我的任务
分享
const string[] DropDownListItems ={ "财政公告", "厅长文稿" };
private void Form1_Load(object sender, EventArgs e)
{
string caseSwitch = "1";
int ii = Array.IndexOf(a, caseSwitch);
if (ii > -1)
{
MessageBox.Show("found");
}
else
{
MessageBox.Show("not found");
}
}
readonly string[] a = { "a", "b" };
class Program
{
readonly string[] a = { "a", "b" };
static void Main(string[] args)
{
const int b = 1;
}
}