Skip to content

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

Closed

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.

Activity

  1. added a commit that references this issue on Jun 29, 2020
    c8586bb
  2. added a commit that references this issue on Feb 5, 2024
    49a230b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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