博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C# language features that are rarely used but can be useful
阅读量:3976 次
发布时间:2019-05-24

本文共 567 字,大约阅读时间需要 1 分钟。

Various small points that it doesn't matter too much if you don't know or use them

'@' symbol 

apart from being used in front of a string to change how compiler interpret the string (verbatim or not), it can be placed also in front of a variable which may otherwise conflict with observed word:

'??' symbol

null coalesce operator, basically 'A ?? B' is equavalent to expression with tertiary operator 'A != null ? A : B', which when made a sequence may allow you to choose the first non-null:

string answer = answer1 ?? answer2 ?? answer 3 ?? ...

(To be continued ...)

转载地址:http://lheki.baihongyu.com/

你可能感兴趣的文章
百度统计接口调用——获取站点访问数据
查看>>
Java WEB开发基础知识
查看>>
[Java Web开发系列课程]从0.5开始学习Java Web开发(一):学习大纲
查看>>
birt标签的使用
查看>>
2012年1月8号订火车票历程
查看>>
My97日期控件
查看>>
30分钟3300%性能提升——python+memcached网页优化小记
查看>>
confmgr项目,django,dwz相关问题
查看>>
linux文件共享
查看>>
linux下tar.gz、tar、bz2、zip等解压缩、压缩命令小结(tar包解压)
查看>>
vi和vim区别
查看>>
程序员经典语录
查看>>
Django性能优化
查看>>
python模块学习 ---- smtplib 邮件发送
查看>>
Python模块学习 ---- subprocess 创建子进程
查看>>
python求时间差
查看>>
Python网页抓取urllib,urllib2,httplib[2]
查看>>
Python urllib2递归抓取某个网站下图片
查看>>
JS清空多文本框|文本域
查看>>
linux常用命令(操作命令)
查看>>