Using a List<Enum> with Pythonnet
I have not been able to figure out this issue - I have a C# DLL that requires a List<Enum> to be populated but it appears Pythonnet returns the integer value of the Enum which does not agree with the List<Enum> datatype. My question is posted here: PythonNET - how to put an Enum into a List? C# NET Python I believe there is some kind of workaround from other posts on StackExchange but I can't replicate that workaround. Any help would be greatly appreciated. | | | | | | | | | | | PythonNET - how to put an Enum into a List? C# NET Python I have a NET library I'm using from Python with PythonNET and can't figure out how to put an enum into a... | | | |
I have not been able to figure out this issue - I have a C# DLL that requires a List<Enum> to be populated but it appears Pythonnet returns the integer value of the Enum which does not agree with the List<Enum> datatype. My question is posted here: PythonNET - how to put an Enum into a List? C# NET Python I believe there is some kind of workaround from other posts on StackExchange but I can't replicate that workaround. Any help would be greatly appreciated. | | | | | | | | | | | PythonNET - how to put an Enum into a List? C# NET Python I have a NET library I'm using from Python with PythonNET and can't figure out how to put an enum into a... | | | |
It looks like you figured out the issue based on update in stackoverflow. On Sat, May 20, 2017, 11:30 AM Matt Slezak via PythonDotNet < pythondotnet@python.org> wrote:
I have not been able to figure out this issue - I have a C# DLL that requires a List<Enum> to be populated but it appears Pythonnet returns the integer value of the Enum which does not agree with the List<Enum> datatype. My question is posted here: PythonNET - how to put an Enum into a List? C# NET Python <http://stackoverflow.com/questions/44078042/pythonnet-how-to-put-an-enum-int...> I believe there is some kind of workaround from other posts on StackExchange but I can't replicate that workaround. Any help would be greatly appreciated.
PythonNET - how to put an Enum into a List? C# NET Python I have a NET library I'm using from Python with PythonNET and can't figure out how to put an enum into a...
<http://stackoverflow.com/questions/44078042/pythonnet-how-to-put-an-enum-int...>
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet
participants (2)
-
Denis Akhiyarov -
Matt Slezak