[Mono-bugs] [Bug 61141][Blo] New - Cannot override Stream.Begin[Read,Write]

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Jul 2004 05:55:28 -0400 (EDT)

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 jeroen@xs4all.nl.


--- shadow/61141	2004-07-04 05:55:27.000000000 -0400
+++ shadow/61141.tmp.17691	2004-07-04 05:55:27.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 61141
+Product: Mono: Compilers
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: Jeroen@xs4all.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Cannot override Stream.Begin[Read,Write]
+I'm trying to create a Gnome.Vfs.VfsStream (jeroen-gtk-2-4 branch of
+gtk-sharp) that inherits from System.IO.Stream and uses the gnome-vfs
+callbacks to read/write etc. data. So far, things have gone smooth. I've
+now run into a problem where i can't override the BeginRead and BeginWrite
+virtual methods of the abstract Stream class:
+./VfsStream.cs(250) error CS0115: `Gnome.Vfs.VfsStream.BeginRead' no
+suitable methods found to override
+./VfsStream.cs(279) error CS0115: `Gnome.Vfs.VfsStream.BeginWrite' no
+suitable methods found to override
+The method signatures are *exactly* the same as those in System.IO.Stream
+though (i've verified this by looking at the sources in mcs).
+	public override IAsyncResult BeginRead (byte[] buffer, int offset, int count,
+						AsyncCallback cback, object state)
+	{
+		return null;
+	}
+	public override IAsyncResult BeginWrite (byte [] buffer, int offset, int
+						AsyncCallback cback, object state)
+	{
+		return null;
+	}
+What's going on here? Is this a bug in mcs?