ParameterInfo.Name needs to be checked for null before usage#1375
ParameterInfo.Name needs to be checked for null before usage#1375
Conversation
This occured in trying to use F# code from Python. As the `.Name` property returns `null`, `ContainsKey` fails. Related documentation: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.parameterinfo.name
|
Can you add a test? |
|
I see #1374 |
This occured in trying to use F# code from Python. As the `.Name` property returns `null`, `ContainsKey` fails. Related documentation: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.parameterinfo.name
|
I tried testing this with the latest 2.5.2 release. Could it be that there was something wrong with the distribution of the package? We checked on multiple environments and it looks like when we install 2.5.2 we still get 2.5.1. Really odd but we're running out of ideas of what we might be doing wrong for a straight forward upgrade... :-) Also tried fresh installs... For example: |
|
It's possible that I missed one version string somewhere, sorry about that. The process on the backports branch is completely manual. |
|
Thank you @filmor - what's the path forward? is it going to be re-released as 2.5.2 or changed to 2.5.3? i.e. - will I get notified of a new release when this is corrected? |
|
I don't intend to do a 2.5.3 release just for this. 2.5 is frozen, only patches for regressions are backported. Work is happening on |
What does this implement/fix? Explain your changes.
This occured in trying to use F# code from Python. As the
.Nameproperty returnsnull,ContainsKeyfails.Does this close any currently open issues?
I don't think so.
Any other comments?
Related documentation: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.parameterinfo.name
I don't know if there is a way to create a C# method without a parameter name. I'll try to set up a few simple F# test-cases in the future in a separate PR (follow-up ticket: #1374).
Checklist
Check all those that are applicable and complete.
AUTHORSCHANGELOG