[IronPython] Distinguishing DLR object from CLR object

Curt Hagenlocher curt at hagenlocher.org
Thu Jan 31 00:51:08 CET 2008


On Jan 30, 2008 3:31 PM, Dino Viehland <dinov at exchange.microsoft.com> wrote:
>
> If by "DLR object" you mean an object which has dynamic behavior beyond just
> it's type you can check to see if it implements IDynamicObject.  But there
> really isn't anything considered to be a "DLR object".

Yes. I wasn't very happy with the categorization, but couldn't think
of a better way to express what I meant.  Your answer was exactly what
I wanted:

clr.GetClrType(Microsoft.Scripting.IDynamicObject).IsAssignableFrom(type(obj))

--
Curt Hagenlocher
curt at hagenlocher.org



More information about the Ironpython-users mailing list