[Ironruby-core] StackOverflowException when accessing object properties

Benjamin van der Veen lists at ruby-forum.com
Sat Nov 15 17:15:57 EST 2008

Hello Andrew,

Andrew Peters wrote:
> I think this is because you need to reference the IronRuby.Libraries 
> dll.
> Strange error I know.
> On Sat, Nov 15, 2008 at 7:33 PM, Benjamin Van der veen 
> <lists at ruby-forum.com

Ah, yes, this fixed the stack overflow error. Strange indeed—thanks for 
the tip! However, it's still not properly resolving the property 

MissingMethodException: undefined method `text' for 

I tried changing TestClass' fields to properties so that they would get 
compiled as methods:

class TestClass
    public string Text { get; set; }
    public int Number { get; set; }

but no dice. Also tried capitalizing "Text". Still works with 
String.Length though (whether I reference it as "my_var.length" or 
"my_var.Length". Any ideas?

(Also, as somewhat of a side-note, is there a different syntax for 
accessing field on CLR objects in IronRuby? Is this possible or must 
they be properties?)

Thanks again,

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

More information about the Ironruby-core mailing list