dinov at exchange.microsoft.com
Wed Nov 28 16:07:56 PST 2007
I don't think there's any great documentation on this, but you can do interface.property.GetValue(instance) or interface.property.SetValue(instance, value).
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jason Pardy
Sent: Wednesday, November 28, 2007 4:02 PM
To: users at lists.ironpython.com
Subject: Re: [IronPython] Intefaces
Has there been any work on documenting the calling of explicitly implemented interfaces and
getting/setting properties through interfaces? If so, is there a location where I can get this information?
2006/10/19, Jason Pardy <jpardy at esri.com<http://lists.ironpython.com/listinfo.cgi/users-ironpython.com>>:
> However, when I try to retrieve the value from a read only property, I get
> an error.
> Is this supposed to work?
Yes, but the correct syntax is:
It kinda makes sense, if you think about it.
All in all, calling explicitly implemented interfaces and
getting/setting properties through interfaces, could be better
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users