//C# ??操作符 左边是否为空 如果左右为空 则使用右边 string num01 = null; string num02 = "你好!"; string action = num01 ?? num02;
string tmd = String.Empty; if (Request["Select"] != null) { tmd = Request["Select"]; } else { tmd = "All"; } string tmd1 = Request["Select"] ?? "All";
C# ??操作符
最新推荐文章于 2023-08-18 15:15:00 发布