ParameterInfo.Name needs to be checked for null before usage by filmor · Pull Request #1375 · pythonnet/pythonnet
What does this implement/fix? Explain your changes.
This occured in trying to use F# code from Python. As the .Name property returns null, ContainsKey fails.
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.