-
Notifications
You must be signed in to change notification settings - Fork 869
Handle DynamicMethod reflection limitations in AIFunctionFactory#7287
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
Merged
stephentoub
merged 19 commits into
main
from
copilot/fix-nullreferenceexception-dynamicmethod
Feb 14, 2026
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c772354
Initial plan
Copilot a28a1db
Fix NullReferenceException in AIFunctionFactory.Create with DynamicMe…
Copilot d33d09b
Address code review feedback: add NullReferenceException justificatio…
Copilot 77477e9
Address review feedback: catch only NullReferenceException, restructu…
Copilot d2cd15f
Use Task<int> instead of Task<object> in DynamicMethod test
Copilot 26139fb
Remove XML doc comments from GetNullableWriteState private method
Copilot 930857f
Return NullabilityState.Unknown instead of null from GetNullableWrite…
Copilot 6567c48
Return null when context is null, NullabilityState.Unknown only from …
Copilot b17c517
Add back runtime PR link in catch comment
Copilot d397aea
Fix CI test failure: replace EqualFunctionCallResults with direct ass…
Copilot 8cd06f8
Fix ArgumentNullException from ReturnParameter.GetCustomAttribute on …
Copilot 063997f
Replace try/catch with proactive null check on ReturnParameter.Member
Copilot ae2dd3a
Check method is DynamicMethod instead of accessing ReturnParameter.Me…
Copilot 81011d3
Merge branch 'main' into copilot/fix-nullreferenceexception-dynamicme…
stephentoub b1d8c73
Use type name check instead of DynamicMethod type for netstandard2.0 …
Copilot c00bbaf
Replace name comparison with try/catch for DynamicMethod ReturnParameter
Copilot 9b063e1
Merge branch 'main' into copilot/fix-nullreferenceexception-dynamicme…
stephentoub a45394b
Skip DynamicMethod invocation test on .NET Framework where MethodInfo…
Copilot bd608c6
Merge branch 'main' into copilot/fix-nullreferenceexception-dynamicme…
stephentoub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.