Maybe someone can explain that behaviour?

- Dietmar

-----------------------------------
using System;

public class Test {

        public enum MyEnum {
                ZERO,
                ONE
        }

        public static int Main() {
                MyEnum en = MyEnum.ONE;
                IComparable ic;

                /* this works */
                ic = (IComparable)(object)en;
                
                /* compiler error ??*/
                ic = (IComparable)en;
                                
                return 0;
        }
}



_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to