[IronPython] Intefaces
Dino Viehland
dinov at exchange.microsoft.com
Thu Oct 19 17:54:12 CEST 2006
Yes, we should add some info to one of our wiki pages on CodePlex or in the FAQ... I've opened a CodePlex work item (4538) so we won't forget about it.
Long term we also want to expose these in a more natural way. Unfortunately we struggled with coming up with a rational way to deal w/ collisions and other corner cases and so we punted on this for v1.0 (and what C# exposes here isn't everything the CLR supports, making it even more fun to get the right answer!)
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Wednesday, October 18, 2006 9:08 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Intefaces
2006/10/19, Jason Pardy <jpardy at esri.com>:
> However, when I try to retrieve the value from a read only property, I
> get an error.
>
> Is this supposed to work?
>
> IGeoProcessorResult.ReturnValue(result)
Yes, but the correct syntax is:
IGeoProcessorResult.ReturnValue.GetValue(result)
IGeoProcessorResult.ReturnValue.SetValue(result, value)
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 documented.
--
Seo Sanghyeon
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list