[Python.NET] Accessing class interface with private methods
alex omoto
lance23runner at yahoo.com
Sat Dec 8 09:09:24 CET 2007
Hi,
I am having trouble using Python.NET in accessing class interface methods that are declared private. As an example,
Public Interface Iface
Property Func() As Boolean
End Interface
Public Class Foo
Implements Iface
Private Function Func() As Boolean
Return True
End Function
Public ReadOnly Property IFACE() As Iface
Get
Return Me
End Get
End Property
End Class
Then using Python 2.5 with Python.Net 2.0 alpha 2, I cannot access the method. Is this supported?
import clr
import Foo
f = Foo()
f.IFACE # OK
f.IFACE.Func() # results in Attribute error
Thanks,
Alex
---------------------------------
Never miss a thing. Make Yahoo your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20071208/4360dcca/attachment.htm
More information about the PythonDotNet
mailing list