Skip to content

Commit 6361141

Browse files
authored
Enable nullable: System.Management.Automation.IDispatch (#14185)
1 parent 7ead137 commit 6361141

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using COM = System.Runtime.InteropServices.ComTypes;
77

8+
#nullable enable
89
namespace System.Management.Automation
910
{
1011
/// <summary>
@@ -19,7 +20,7 @@ internal interface IDispatch
1920
int GetTypeInfoCount(out int info);
2021

2122
[PreserveSig]
22-
int GetTypeInfo(int iTInfo, int lcid, out COM.ITypeInfo ppTInfo);
23+
int GetTypeInfo(int iTInfo, int lcid, out COM.ITypeInfo? ppTInfo);
2324

2425
void GetIDsOfNames(
2526
[MarshalAs(UnmanagedType.LPStruct)] Guid iid,
@@ -34,7 +35,7 @@ void Invoke(
3435
int lcid,
3536
COM.INVOKEKIND wFlags,
3637
[In, Out][MarshalAs(UnmanagedType.LPArray)] COM.DISPPARAMS[] paramArray,
37-
out object pVarResult,
38+
out object? pVarResult,
3839
out ComInvoker.EXCEPINFO pExcepInfo,
3940
out uint puArgErr);
4041
}

0 commit comments

Comments
 (0)