本文共 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/