In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Nullable type modifier (?): Reference types can use null references to represent a value that does not exist, while value types generally cannot be represented as null, e.g.:string str=null; is correct. int i=null; the compiler will report an error. In order to make value types nullable, nullable types appear, nullable types use nullable type modifiers? The expression is T?. Example: int? Is it empty ×××, DateTime? Time expressed as nullable. T? Nullable, which means that when you use T? T? T? Compile to System.Nullable, e.g. int?, After compilation, it is in the form of System.Nullable.
2, Triple (operator) expression (?:): For example, int a=b>0? 4:5 If b is greater than 0 then return a=4 otherwise a=5.
3. Empty merge operator (??): Default values for defining nullable and reference types. If the left operand of this operator is not null, the operator returns the left operand; otherwise, it returns the right operand. Example: A b, return b when a is null, return a itself when a is not null. The null merge operator is a right join operator, which combines from right to left when operating. For example,"a? b?? c"in the form of"a?? (b?? c)"Calculation.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.