[Mono-bugs] [Bug 51341][Nor] New - Missing overloads for System.Array.Copy using NET 1.1
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 24 Nov 2003 07:11:59 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by peter@crippledcanary.se.
http://bugzilla.ximian.com/show_bug.cgi?id=51341
--- shadow/51341 2003-11-24 07:11:59.000000000 -0500
+++ shadow/51341.tmp.7276 2003-11-24 07:11:59.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 51341
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: peter@crippledcanary.se
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Missing overloads for System.Array.Copy using NET 1.1
+
+Description of Problem:
+When trying to compile a class that utilizes Array.Copy with 1.1 specific
+overloads the compiler fails.
+
+BufferedSocket.cs(185) error CS1502: The best overloaded match for method
+'void System.Array.Copy (System.Array, int, System.Array, int, int)' has
+some invalid arguments
+BufferedSocket.cs(185) error CS1503: Argument 1: Cannot convert from 'long'
+to 'int'
+BufferedSocket.cs(185) error CS1501: No overload for method `Copy' takes
+`5' arguments
+BufferedSocket.cs(185) error CS8006: Could not find any applicable function
+for this argument list
+
+The microsoft documentation for Array.Copy contains 5 overloads but mono
+documentation only specifies 2.
+
+
+snip begin
+if(countInBuff > buffer.Length)
+{
+ Array.Copy(m_Buffer,m_BufPos,buffer,0,buffer.Length);
+ m_BufPos += buffer.Length;
+ return buffer.Length;
+}
+
+snip end