摘自博客 JesseLZJ https://www.cnblogs.com/jesselzj/p/4724887.html 编写高质量代码改善C#程序的157个建议—— 减少/避免装箱操作 详使用默认转型方法 详强制转型 VS as,is 详TryParse > Parse 详使用值为空的int类型:Nullable<int> i = null /int? i = null (T?是Nullable<T>是缩写)详 转载于:https://www.cnblogs.com/codecheng/p/11429634.html