8000 Enable nullable: System.Management.Automation.IDispatch · PowerShell/PowerShell@a269af3 · GitHub
[go: up one dir, main page]

Skip 8000 to content

Commit a269af3

Browse files
committed
Enable nullable: System.Management.Automation.IDispatch
1 parent 6dcc507 commit a269af3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/System.Management.Automation/engine/COM/ComDispatch.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
using System.Diagnostics.CodeAnalysis;
45
using System.Runtime.InteropServices;
56

67
using COM = System.Runtime.InteropServices.ComTypes;
78

9+
#nullable enable
10+
811
namespace System.Management.Automation
912
{
1013
/// <summary>
@@ -19,7 +22,7 @@ internal interface IDispatch
1922
int GetTypeInfoCount(out int info);
2023

2124
[PreserveSig]
22-
int GetTypeInfo(int iTInfo, int lcid, out COM.ITypeInfo ppTInfo);
25+
int GetTypeInfo(int iTInfo, int lcid, out COM.ITypeInfo? ppTInfo);
2326

2427
void GetIDsOfNames(
2528
[MarshalAs(UnmanagedType.LPStruct)] Guid iid,
@@ -34,7 +37,7 @@ void Invoke(
3437
int lcid,
3538
COM.INVOKEKIND wFlags,
3639
[In, Out][MarshalAs(UnmanagedType.LPArray)] COM.DISPPARAMS[] paramArray,
37-
out object pVarResult,
40+
out object? pVarResult,
3841
out ComInvoker.EXCEPINFO pExcepInfo,
3942
out uint puArgErr);
4043
}

0 commit comments

Comments
 (0)
0