- Notifications
You must be signed in to change notification settings - Fork768
Open
Description
Environment
- Pythonnet version: 2.4.0.dev0
- Python version: 3.6.4
- Operating System: Windows 7 64
Details
Describe what you were trying to get done.
Invoke a generic method with multiple overload and out parameters
What commands did you run to trigger this issue?
//C# SIDE//...publicvoidGetProperty<T>(stringpropertyName,outTvalue){...}//<= The one i'm trying to getpublicvoidGetProperty<T>(stringpropertyName,outTvalue,boolasRef){...}publicvoidGetProperty<T>(stringpropertyName,outTvalue,intindex){...}publicvoidGetProperty<T>(stringpropertyName,outTvalue,intindex,boolasRef){...}publicvoidGetProperty<T>(PropertyIDpropertyID,outTvalue,intindex){...}publicvoidGetProperty<T>(PropertyIDpropertyID,outTvalue,boolasRef){...}//...
#PYTHON SIDE, What i've tested so farobject.GetProperty[System.Single]('PropertyName',None)#FAILobject.GetProperty[System.Single]('PropertyName',System.Single(0).GetType())#FAILobject.GetProperty[System.Single]('PropertyName',System.Single(0).GetType().MakeByRefType())#FAILobject.GetProperty('PropertyName',None)#FAILobject.GetProperty('PropertyName',System.Single(0).GetType())#FAILobject.GetProperty('PropertyName',System.Single(0).GetType().MakeByRefType())#FAILobject.GetProperty.Overloads[System.String,System.Single(0).GetType().MakeByRefType()]('PropertyName',None)#FAIL
- Traceback:
Traceback (mostrecentcalllast):File"C:\Users\{USER}\AppData\Local\Programs\Python\Python36\lib\runpy.py",line193,in_run_module_as_main"__main__",mod_spec)File"C:\Users\{USER}\AppData\Local\Programs\Python\Python36\lib\runpy.py",line85,in_run_codeexec(code,run_globals)File"D:/PythonWorkspace/{MODULE}\__main__.py",line5,in<module>test_pythonnet.launchTest()File"D:/PythonWorkspace/{MODULE}\test_pythonnet.py",line45,inlaunchTesttest=object.GetProperty[System.Single]('PropertyName',byref)TypeError:Nomethodmatchesgivenarguments
So, i'm at a loss here, do i need to do all the reflection stuff by hand ?
Metadata
Metadata
Assignees
Labels
No labels