# Re: Reflection bug?

**URL:** <https://www.ruby-forum.com/t/re-reflection-bug/181408>\
**Category:** IronRuby\
**Created:** [January 11, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/re-reflection-bug/181408 "2010-01-11T15:39:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_Wilson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Post date:** [January 11, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/re-reflection-bug/181408/1 "2010-01-11T15:39:40Z")

</div>

That worked! That would be a fun bug to track down. 🙂

I was worried that it was reflection against an attribute, because the  
documentation on the IR site seems to suggest that attributes still  
aren’t  
supported in .net API interop. (  
[http://ironruby.net/Documentation/.NET/API\_Guidelines](http://ironruby.net/Documentation/.NET/API_Guidelines))

Thanks again!  
-A

---

<div class="post-metadata">

**Author:** ![andrew\_Wilson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Post date:** [January 11, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/re-reflection-bug/181408/2 "2010-01-11T16:45:50Z")

</div>

That’s a bit ambiguous.  
If your C# library uses attributes I don’t see why you wouldn’t be able  
to  
reflect over those types with IronRuby and execute the attribute.

But using attributes in Ruby that is a totally different story. Luckily  
ruby  
has a different idea about classes and you can use class methods to  
reach a  
similar effect.  
For example [ASP.NET](http://ASP.NET) MVC uses attributes to do its job, but IronRubyMvc  
has  
no need for them because it uses those class methods.  
[ironrubymvc/IronRubyMvc/Controllers/controller.rb at master · casualjim/ironrubymvc · GitHub](http://github.com/casualjim/ironrubymvc/blob/master/IronRubyMvc/Controllers/controller.rb#L173)

* * *

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))
