<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7100.0"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>yea <IMG
style="POSITION: static; MARGIN: 0px; FLOAT: none" title="Smile emoticon"
tabIndex=-1 alt="Smile emoticon"
src="cid:A39020847207434C8A043EC676630246@RBEAR1"
MSNNonUserImageOrEmoticon="true"> works fine inside c#</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=curt@hagenlocher.org
href="mailto:curt@hagenlocher.org">Curt Hagenlocher</A> </DIV>
<DIV><B>Sent:</B> Wednesday, May 27, 2009 10:57 PM</DIV>
<DIV><B>To:</B> <A title=users@lists.ironpython.com
href="mailto:users@lists.ironpython.com">Discussion of IronPython</A> </DIV>
<DIV><B>Subject:</B> Re: [IronPython] C# 4.0 DynamicObject in
IronPython</DIV></DIV></DIV>
<DIV><BR></DIV>Oops! Apparently I haven't quite read your message correctly.
:(<BR><BR>
<DIV class=gmail_quote>On Wed, May 27, 2009 at 7:56 PM, Curt Hagenlocher <SPAN
dir=ltr><<A
href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Have you cast the variable to type "dynamic"? that
is,<BR><BR>class MyDynamicObject : DynamicObject { ... }<BR><BR>dynamic obj =
new MyDynamicObject();<BR>dynamic memberval = obj.SomeMember;<BR><BR>
<DIV class=gmail_quote>
<DIV class=im>On Wed, May 27, 2009 at 7:54 PM, R. Bear Smith <SPAN
dir=ltr><<A href="mailto:rbear@rbear.net"
target=_blank>rbear@rbear.net</A>></SPAN> wrote:<BR></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV class=im>
<DIV style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
name="Compose message area">
<DIV><FONT face=Calibri>Hi, I am trying to use a c# 4.0 class that derives
from dynamicobject in the dlr for net 4.0 release with ironpython. I
am just basically trying to emulate the simple example from the pdc of using
one of these classes from ironpython at this stage. The problem is the
class seems to be exposed as just a normal class with all its members like
trygetmember,trysetmember exposed. Any member access that should go to
trygetmember and the other override methods returns with AttributeError -
object has no attribute foo. The class functions properly from within
c#. Just wondering if there is a known issue with this or if I am
missing some extra step that has been introduced since earlier demos of this
functionality.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT
face=Calibri>Thanks</FONT></DIV></DIV><BR></DIV>_______________________________________________<BR>Users
mailing list<BR><A href="mailto:Users@lists.ironpython.com"
target=_blank>Users@lists.ironpython.com</A><BR><A
href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com"
target=_blank>http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@lists.ironpython.com<BR>http://lists.ironpython.com/listinfo.cgi/users-ironpython.com<BR></BODY></HTML>