-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Enable nullable: System.Management.Automation.IDispatch #14185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
|
|
||
| using COM = System.Runtime.InteropServices.ComTypes; | ||
|
|
||
| #nullable enable | ||
| namespace System.Management.Automation | ||
| { | ||
| /// <summary> | ||
|
|
@@ -19,7 +20,7 @@ internal interface IDispatch | |
| int GetTypeInfoCount(out int info); | ||
|
|
||
| [PreserveSig] | ||
| int GetTypeInfo(int iTInfo, int lcid, out COM.ITypeInfo ppTInfo); | ||
| int GetTypeInfo(int iTInfo, int lcid, out COM.ITypeInfo? ppTInfo); | ||
|
|
||
| void GetIDsOfNames( | ||
| [MarshalAs(UnmanagedType.LPStruct)] Guid iid, | ||
|
|
@@ -34,7 +35,7 @@ void Invoke( | |
| int lcid, | ||
| COM.INVOKEKIND wFlags, | ||
| [In, Out][MarshalAs(UnmanagedType.LPArray)] COM.DISPPARAMS[] paramArray, | ||
| out object pVarResult, | ||
| out object? pVarResult, | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| out ComInvoker.EXCEPINFO pExcepInfo, | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This can be null, but as we use a struct for ComInvoker.EXCEPTINFO, it shouldn't be marked as |
||
| out uint puArgErr); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.