[Ironruby-core] RubyArray to List<T> ?
ben2004uk at googlemail.com
Wed Jun 2 20:26:49 EDT 2010
I have a block of code which returns me a RubyArray back into C# code.
While I can get access to the strongly typed objects inside using
reflection, I was wondering if there was any way to get the data back
as a List<T> ?
Example of the code at the moment:
RubyArray o = (RubyArray) filters.GetFilteredOutTweets(tweets);
Console.WriteLine((o as Tweet).User);
GetFilteredOutTweets returns an object as when it returned List<Tweet>
it was causing it to fail.
More information about the Ironruby-core