[Ironruby-core] question on some code from ironrubymvc

Ivan Porto Carrero ivan at flanders.co.nz
Thu Jan 29 16:43:09 EST 2009


Hi
While working on the code for a ironrubymvc i came across the following code

controllerRubyClass.EnumerateMethods((_, symbolId, __) =>
                                                         {
                                                             if
(String.Equals(symbolId, actionName,

  StringComparison.OrdinalIgnoreCase))
                                                             {

controllerRubyMethodName = symbolId;
                                                                 return
true;
                                                             }
                                                             return false;
                                                         });

The tidbit I find interesting is the _ and the __ in the lambda. Is that an
equivalent for null or does it something else?
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
GSM: +32.486.787.582
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090129/b9dd6f50/attachment.html>


More information about the Ironruby-core mailing list