[Ironruby-core] How to fire IronRuby Method from C#

Mohammad Azam lists at ruby-forum.com
Tue Jun 9 23:36:53 EDT 2009


Curt Hagenlocher wrote:
> Yes, sorry, you're right -- it's Engine.Operations (but the name of the 
> class is "ObjectOperations").
> 
> The error message tells you exactly what you need to do! Make sure 
> you've added references to Microsoft.CSharp.dll and System.Core.dll to 
> your project.

The error is now gone! but I got the new error which says:

RubyObject does not contain the definition for greet!

   object personClass = engine.Runtime.Globals.GetVariable("Person");
            dynamic person = 
engine.Operations.CreateInstance(personClass);

            person.greet();

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


More information about the Ironruby-core mailing list