Hi, is this what you mean? >>> import clr >>> from System import Object >>> from System.Collections.Generic import List >>> List.__class__.__subclasscheck__(Object,List) True
HTH, Gregor Am Mi., 20. Mai 2020 um 01:48 Uhr schrieb <robert.hoe...@posteo.de>: > In python I can check the inheritance via isinstance() (and issubclass()). > These methods do not work on .NET classes. > Are there alternative methods which are doing the job for .NET > _______________________________________________ > PythonNet mailing list -- pythonnet@python.org > To unsubscribe send an email to pythonnet-le...@python.org > https://mail.python.org/mailman3/lists/pythonnet.python.org/ > Member address: gregor...@gmx.de >
_______________________________________________ PythonNet mailing list -- pythonnet@python.org To unsubscribe send an email to pythonnet-le...@python.org https://mail.python.org/mailman3/lists/pythonnet.python.org/ Member address: arch...@mail-archive.com