摘要: 尝试过写 if (x is null)?它与 if (x == null) 相比,孰优孰劣呢? x is null 还有 x is constant 是 C# 7.0 中引入的模式匹配(Pattern Matching)中的一个小细节。阅读本文将了解 x is constant 和 x == con 阅读全文
posted @ 2017-11-06 23:21 walterlv 阅读(2362) 评论(4) 推荐(1) 编辑