[Ironruby-core] Getting variable form IronRuby

Alexander Ranger lists at ruby-forum.com
Fri Jul 27 18:51:11 UTC 2012

Thanks for your answer, Eduardo.

I've done it as you adviced:

hashString = ModuleClass.GetObjectHash(testObject).to_s.to_clr_string
# in IronRuby code

and tried to call it in C#:

string netString;
engine.ExecuteFile(path).TryGetVariable("hashString", out netString);

Well, there are no mistakes in compiling Ruby code, but the netString is
null after executing the ruby file.

I guess that the hashString after executing just seems to be empty. Is
it something wrong with calling it in C# or is it just expected to be 

Posted via http://www.ruby-forum.com/.

More information about the Ironruby-core mailing list