No problem, here is the list with more details:
1. out parameters:
C#
-----
public class Class3 {
public void Test1(out string str) {
str = "From C#";
}
}
IronRuby
----------
>> s = "a"
=> "a"
>> Class3.new.Test1(s)
:0: can't convert String into
System::Runtime::CompilerServices::StrongBox[System::String] (TypeError)
2. ref parameters:
C#
-----
public class Class3 {
public void Test2(ref string str) {
str = "From C#";
}
}
IronRuby
----------
>>> s = "a"
=> "a"
>>> Class3.new.Test2(s)
=> 'From C#'
>>> s
=> "a"
(This seems to work like your description to out parameters)
3. Structs
C#
------
public struct FullName {
public string FirstName;
public string LastName;
}
IronRuby
-----------
>>> my_struct = FullName.new
:0: allocator undefined for Sample::FullName (TypeError)
Let me know if you need more details.
Many thanks,
Shay
----------------------------
Shay Friedman
http://www.ironshay.com
Follow me: http://twitter.com/ironshay
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core