# Is there a way to pick a method overload?

**URL:** <https://www.ruby-forum.com/t/is-there-a-way-to-pick-a-method-overload/170467>\
**Category:** IronRuby\
**Created:** [June 17, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-pick-a-method-overload/170467 "2009-06-17T21:16:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [June 17, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-pick-a-method-overload/170467/1 "2009-06-17T21:16:43Z")

</div>

Hi  
Is there a way to pick a CLR method overload?

var query = new Query();  
UnitOfWorkScope.Current.Find(query);

That find method takes a Query type or a ProcedureQuery type where  
ProcedureQuery would be a stored proc call. Also ProcedureQuery is a  
more specialized version  
of a Query class.  
Currently this method fails because IronRuby picks the overload with the  
ProcedureQuery and I’d like to be able to tell it to take the overload  
that  
takes Query. Can that be done?

* * *

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))
