Reflection: getClass

0 views
Skip to first unread message

darscan

unread,
Apr 19, 2009, 11:12:01 PM4/19/09
to Smartypants IOC
Hi Josh, might be a useful addition to the Reflection util:

public static function getClass( instance:Object ):Class
{
return Class( getDefinitionByName( getQualifiedClassName
( instance ) ) );
}

Well, I'd use it :D

Josh McDonald

unread,
Apr 20, 2009, 12:09:21 AM4/20/09
to smartyp...@googlegroups.com
Good idea, I'll add that :)

2009/4/20 darscan <Dar...@gmail.com>



--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  jo...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/

Reply all
Reply to author
Forward
0 new messages