Thank you!
--
Posted via http://www.ruby-forum.com/.
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
g] On Behalf Of Alex 2k8
Sent: Friday, January 09, 2009 8:17 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Calling overloaded methods
Hello,
C#
public class Cls {
public void foo(object a) {
Console.WriteLine("foo #1");
}
public void
"object[]". So it's unlikely that IronRuby
would ever do this conversion automatically for you.
-Original Message-
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Alex 2k8
Sent: Friday, January 09, 2009 8:17 AM
To: ir
Hello,
C#
public class Cls {
public void foo(object a) {
Console.WriteLine("foo #1");
}
public void foo(object[] a) {
Console.WriteLine("foo #2");
}
}
Ruby:
Cls.new.foo(7)
Cls.new.foo([3, 4])
Output:
foo #1
foo #1