You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable nullable referenrce types in DebugEngineHost (#1592)
This PR contains the work to enable nullable reference types for the first project in MIEngine -- the DebugEngineHost implementations.
**Changes:**
- Turn on `<Nullable>enable</Nullable>` for the DebugEngineHost projects and update APIs/fields to nullable annotations (`?`, `is null`, `is not null`, null-forgiving where needed).
- Add shared compatibility code for NRT on older frameworks (`NullableHelpers`, `NullableAttributes`) and flow annotations (e.g., `[MaybeNullWhen(false)]`).
- Set repo-wide C# language version to 12.0 and simplify shared source inclusion via `*.cs` globs + `<Link>`.
/// And decide that because the code was attempting to handle 'myArg' being null, that it must be possible
47
+
/// for it to be null.
48
+
/// </summary>
49
+
[System.Diagnostics.DebuggerNonUserCode()]
50
+
publicstaticclassDebug
51
+
{
52
+
/// <summary>
53
+
/// Checks for a condition; if the condition is false, displays a message box that shows the call stack.
54
+
/// </summary>
55
+
/// <param name="condition">The conditional expression to evaluate. If the condition is true, a failure message is not sent and the message box is not displayed.</param>
/// Checks for a condition; if the condition is false, outputs a specified message and displays a message box that shows the call stack.
64
+
/// </summary>
65
+
/// <param name="condition">The conditional expression to evaluate. If the condition is true, the specified message is not sent and the message box is not displayed.</param>
66
+
/// <param name="message">The message to send to the <see cref="System.Diagnostics.Trace.Listeners"/> collection.</param>
/// Checks for a condition; if the condition is false, outputs two specified messages and displays a message box that shows the call stack.
75
+
/// </summary>
76
+
/// <param name="condition">The conditional expression to evaluate. If the condition is true, the specified messages are not sent and the message box is not displayed.</param>
77
+
/// <param name="message">The message to send to the <see cref="System.Diagnostics.Trace.Listeners"/> collection.</param>
78
+
/// <param name="detailMessage">The detailed message to send to the <see cref="System.Diagnostics.Trace.Listeners"/> collection.</param>
0 commit comments