Re: [Ironruby-core] Creating RubySymbols in C#

2011-06-27 Thread Rob Britton
Great, thanks! I don't feel strongly about it so I'll just put in a little helper function to my .NET project to convert a Hash to a Dictionary. The monkey-patching method might not work too well since there will be many functions that might use this pattern, and having to monkey-patch every single

Re: [Ironruby-core] Creating RubySymbols in C#

2011-06-23 Thread Jimmy Schementi
On Jun 23, 2011, at 11:45 AM, Rob Britton wrote: > I'm attempting to write a method in C# that is called by IronRuby to > speed up an existing script, and I call it like this: > > foo :limit => 5, :offset => 10 > > How would I go about accessing these objects from C#? I'm trying > something like

[Ironruby-core] Creating RubySymbols in C#

2011-06-23 Thread Rob Britton
Hello, I'm attempting to write a method in C# that is called by IronRuby to speed up an existing script, and I call it like this: foo :limit => 5, :offset => 10 How would I go about accessing these objects from C#? I'm trying something like this: void foo(Hash options){ int limit = (int)opt