[IronPython] returning inherited classes to .NET

Howland-Rose, Kyle Kyle.Howland-Rose at aar.com.au
Fri Feb 22 04:39:52 CET 2008


Again but with subject, sorry :(

________________________________

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Howland-Rose,
Kyle
Sent: Friday, 22 February 2008 2:38 PM
To: users at lists.ironpython.com
Subject: [IronPython] (no subject)


Hi all, 

I am following 
http://www.ironpython.info/index.php/Using_Python_Classes_from_.NET
<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).
 
*************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080222/55dcd208/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT370721.txt
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080222/55dcd208/attachment.txt>


More information about the Ironpython-users mailing list