- Notifications
You must be signed in to change notification settings - Fork750
Closed
Labels
Description
Environment
- Pythonnet version: 2.1.0
- Python version: 2.7.10
- Operating System: Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601
Details
When calling a method with theparams keyword with a single argument I get
TypeError: No method matches given arguments
To reproduce:
C#:
publicclassFoo{publicvoidBar(paramsint[]values){foreach(varvalueinvalues){Console.WriteLine(value);}}}
Python:
foo=Foo()foo.Bar([2,3,5,7])# worksfoo.Bar(2,3,5,7)# worksfoo.Bar([5])# worksfoo.Bar(5)# TypeError: No method matches given arguments
This is probably related to the meta-issue#265.