[Ironruby-core] Referencing a CLR List in IronRuby
jgbailey at gmail.com
Thu Oct 11 15:49:39 EDT 2007
On 10/11/07, Eric Nicholson <enicholson at gmail.com> wrote:
> I can't figure out how to get items out of any of the CLR List types in
> IronRuby. Here's a contrived example:
> >>> require 'mscorlib'
> => true
> >>> foo = System::Collections:: ArrayList.new()
> => #<ArrayList:0x0000056>
> >>> foo.Item(0)
> System.MissingMethodException: undefined local variable or method `Item'
> for #<ArrayList:0x0000056>:ArrayList
The actualy method name will be get_Item(), I think. But did you try
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core