http://bugzilla.novell.com/show_bug.cgi?id=520437
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=520437#c8 --- Comment #8 from Robert Jordan <[email protected]> 2009-07-11 14:41:48 MDT --- Related to the first issue, the following sample is failing on MS.NET with: Unhandled Exception: System.InvalidCastException: Unable to cast object of type 'LgWritingSystemFactory' to type 'LgWritingSystemFactory2'. at Test.Main() So it seems that we cannot alias 2 ComImport classes: using System; using System.Runtime.InteropServices; [ComImport] [ClassInterface(ClassInterfaceType.None)] [TypeLibType(TypeLibTypeFlags.FCanCreate)] [Guid("D96B7867-EDE6-4c0d-80C6-B929300985A6")] // <-- same GUID internal class LgWritingSystemFactory { } [ComImport] [ClassInterface(ClassInterfaceType.None)] [TypeLibType(TypeLibTypeFlags.FCanCreate)] [Guid("D96B7867-EDE6-4c0d-80C6-B929300985A6")] // <-- same GUID internal class LgWritingSystemFactory2 { } class Test { static void Main() { new LgWritingSystemFactory(); new LgWritingSystemFactory2(); } } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
