Content deleted Content added
Tags: Mobile edit Mobile web edit |
Tags: Mobile edit Mobile web edit |
||
Line 322:
=== Nullable ===
The <code>#nullable</code> directive in C# is used to enable and disable nullable reference types. To enable them, use <code>#nullable enable</code>, and <code>#nullable disable</code> to disable them.
<syntaxhighlight lang="csharp">
Line 334:
string test = null; // No warning
</syntaxhighlight>
This directive does not exist in C/C++.
=== Region ===
Line 347 ⟶ 349:
#endregion
</syntaxhighlight>
This directive does not exist in C/C++.
== Other uses ==
|