Forum: IronRuby is there a way to pick a method overload?

Posted by Ivan Porto carrero (casualjim)
on 2009-06-17 21:16
(Received via mailing list)
Hi
Is there a way to pick a CLR method overload?

var query = new Query();
UnitOfWorkScope.Current.Find<ChatMessage>(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 Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.