Curious, how it is expected to work (or nobody thinked it over yet?)

Example to consider:

    - - - -
    public interface IFoo1
    {
        void Bar();
    }

    public interface IFoo2
    {
        void Bar();
    }

    public class Cls : IFoo1, IFoo2
    {
        void IFoo1.Bar() {}
        void IFoo2.Bar() {}
        public void Bar() {}
    }
    - - - -

C# approach:
    - - - -
    Cls obj = new Cls();
    obj.Bar();
    ((IFoo1)obj).Bar();
    ((IFoo2)obj).Bar();
    - - - -

What is for IronRuby?

Thanks,
 - Alex
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to