Skip to content

calling C# method that have Params argument , throwing TypeError when not using that argument  #943

@tbeidas

Description

@tbeidas

Environment

  • Pythonnet version: 2.4.0
  • Python version: 3.6.8
  • Operating System: Windows Server 2016

Details

After upgrade from Pythonnet 2.2.2 to 2.4.0, I get the following error:

No method matches given arguments for GetConfigInterface

C# method:

public static IConfig GetConfigInterface (ConfigType type , params string [] param)    

What commands did you run to trigger this issue?

GetConfigInterface(self.pdcuConfigType) 

This worked without any issue using pythonnet 2.2.2 while it fails at version 2.4.0.

It seems to be related to the reported issue #916, but it's a different use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions