[Mono-bugs] [Bug 29365][Wis] New - Two-dimensional array of Bytes doesn't retrieve values

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
23 Aug 2002 08:27:44 -0000


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 andy@nobugs.org.

http://bugzilla.ximian.com/show_bug.cgi?id=29365

--- shadow/29365	Fri Aug 23 04:27:43 2002
+++ shadow/29365.tmp.3998	Fri Aug 23 04:27:43 2002
@@ -0,0 +1,37 @@
+Bug#: 29365
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: andy@nobugs.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Two-dimensional array of Bytes doesn't retrieve values
+
+Build and run the following code with latest mono cvs:
+
+class X
+{
+	public static void Main()
+	{
+		byte[,] foo = new byte[1,1];
+		foo[0,0] = 42;
+		System.Console.WriteLine("{0}", foo[0,0]);
+	}
+}
+
+Expected result:  It should print '42'
+
+Actual result: It prints '254'
+
+ - A one dimensional byte array works fine
+ - A two dimensional int array works fine
+ - Printing bytes using WriteLine() works fine