C# if简写

int optionCount = string.IsNullOrEmpty(strProxy) ? 1 : (string.IsNullOrEmpty(exceptions) ? 2 : 3);

  

posted @ 2022-03-09 16:47  多见多闻  阅读(412)  评论(0)    收藏  举报