Pass array as a ref object to C# function #2587
Unanswered
yezhou2000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to call a C# function from Python (currently I only have the compiled DLL file and no access to the C# source code). I’ve found that the C# function requires a ref object parameter as its input. In my Python code, I have an already defined array. How can I pass this array into the C# function correctly as a ref object?
For your reference, I’m using Python 3.7 and pythonnet version 2.5.2
Beta Was this translation helpful? Give feedback.
All reactions