[IronPython] returning inherited classes to .NET
Curt Hagenlocher
curt at hagenlocher.org
Thu Feb 21 20:08:01 PST 2008
The page in question doesn't seem to show what you describe -- deriving a
Python class from a C# class. Maybe you could show us your sample code?
On Thu, Feb 21, 2008 at 7:39 PM, Howland-Rose, Kyle <
Kyle.Howland-Rose at aar.com.au> wrote:
> Hi all,
>
> I am following
> http://www.ironpython.info/index.php/Using_Python_Classes_from_.NET but
> using VB.
>
> In VB I declare a class and derive a python 1.1 class from it but when I
> return it I get the exception:
>
> "Unable to cast object of type '
> IronPython.NewTypes.WebControlLibrary.ChildControl_1' to type '
> WebControlLibrary.ChildControl'."
>
> The page referenced above just seems to cast the python class instance to
> the C# class instance but this does not work for me in VB.
>
> Any help would be appreciated :)
>
> Thanks,
>
> Kyle
>
>
>
> ************************************************************************
>
> Allens Arthur Robinson online: http://www.aar.com.au
>
> This email is confidential and may be subject to legal or other
> professional privilege. It is also subject to copyright. If you have
> received it in error, confidentiality and privilege are not waived and you
> must not disclose or use the information in it. Please notify the sender by
> return email and delete it from your system. Any personal information in
> this email must be handled in accordance with the Privacy Act 1988 (Cth).
>
> *************************************************************************
>
>
>
> ************************************************************************
>
> Allens Arthur Robinson online: http://www.aar.com.au
>
> This email is confidential and may be subject to legal or other
> professional privilege. It is also subject to copyright. If you have
> received it in error, confidentiality and privilege are not waived and you
> must not disclose or use the information in it. Please notify the sender by
> return email and delete it from your system. Any personal information in
> this email must be handled in accordance with the Privacy Act 1988 (Cth).
>
> *************************************************************************
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080221/723024b3/attachment.htm
More information about the Users
mailing list