In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of what the single question mark and double question mark of C# have, the content is detailed and easy to understand, the operation is simple and fast, and it has certain reference value. I believe that you will gain something after reading this article on the role of single question mark and double question mark of C#. Let's take a look.
C # single question mark? With a double question mark?
? The single question mark is used for null assignment to int, double, bool and other data types that cannot be directly assigned to null, which means that the data type is of Nullable type.
Int? I = 3
Equivalent to:
Nullable I = new Nullable (3); int I; / / default 0int? Ii; / / default null
?? The double question mark is used to determine that a variable returns a specified value when it is null.
What is C #? C # is a simple, general-purpose, object-oriented programming language developed by Microsoft Microsoft. It inherits the powerful functions of C # and C++, and removes some of their complex features. C # combines the simple visual operation of VB and the high running efficiency of C++, and becomes the preferred language for .NET development because of its strong operation ability, elegant syntax style, innovative language features and convenient component-oriented programming. However, it is not suitable for writing code that is time-critical or very high-performance, because C# lacks the key functionality required by extremely high-performance applications.
This is the end of the article on "what is the function of single question mark and double question mark of C#". Thank you for your reading! I believe that everyone has a certain understanding of the knowledge of "what is the function of single question mark and double question mark of C#". If you still want to learn more knowledge, you are welcome to follow the industry information channel.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.