https://bugzilla.novell.com/show_bug.cgi?id=659255
https://bugzilla.novell.com/show_bug.cgi?id=659255#c0 Summary: Socket.Dispose should be public in the .Net 4.0 profile Classification: Mono Product: Mono: Class Libraries Version: 2.8.x Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: System AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=404635) --> (http://bugzilla.novell.com/attachment.cgi?id=404635) Patch that fixes the issue. User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) In .Net 4.0, the Socket class's IDisposable.Dispose implementation was changed from an explicit interface implementation to a public method. However, in Mono 2.8.1 using the .Net 4.0 profile, the method is still explicitly implemented. I have attached a patch with a fix for this issue. Reproducible: Always Steps to Reproduce: 1. Try to call the Socket.Dispose directly (without casting to IDisposable first). Actual Results: If compiled using dmcs, the code doesn't compile. If compiled using Microsoft's csc, the code will throw a MissingMethodException during runtime. Expected Results: I expected the Dispose method to have been made public in accordance with Microsoft's .Net 4.0. -- Configure bugmail: https://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
