C# 基础使用技巧 1:?操作符 控件赋值常有如下情景设置 如果变量值不为Null,则需要将控件设定为变量的值 可以采用如下方法简写: this.txtEmail.Text = user.Email?.ToString(); posted on 2017-06-28 16:37 飘扬De黑夜 阅读( ...) 评论( ...) 编辑 收藏 转载于:https://www.cnblogs.com/volts0302/p/7090425.html