Re: [IronPython] Intefaces

2006-10-18 Thread Sanghyeon Seo
2006/10/19, Jason Pardy <[EMAIL PROTECTED]>: > 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) IGeoProc

[IronPython] Intefaces

2006-10-18 Thread Jason Pardy
Thanks Dino.   I got this to work where GetMessages is a method call.   result = gp.Execute(..) IGeoProcessorResult.GetMessages(result, 0)   However, when I try to retrieve the value from a read only property, I get an error.   Is this supposed to work? IGeoProcessorResult.ReturnV

[IronPython] import this

2006-10-18 Thread Gary Stephenson
At the risk of appearing flippant, I'd like to suggest that the following should be considered an error in need of correction. <0.5wink> IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import this Traceback (most recent call last

Re: [IronPython] Intefaces

2006-10-18 Thread Dino Viehland
What do you mean by Uninitialized?  Are you getting back None?   What you should get back is an instance of the class that implements the interface.  If the class is implementing the interface explicitly (so the method is actually declared w/o public in C# and w/ the interface name) then

[IronPython] Intefaces

2006-10-18 Thread Jason Pardy
All,   I have a case where my namespace contains many interfaces and classes. One of my classes contains a method that returns a pointer to an interface:   >>> gp.Execute.__doc__ 'IGeoProcessorResult Execute(self, str Name, IVariantArray ipValues, ITrackCance l pTrackCancel)' >>>