Re: [Mono-dev] [Patch] Stream 2.0 updates

2006-03-09 Thread Paolo Molaro
On 03/03/06 Miguel de Icaza wrote:
> > This patch adds some of the new 2.0 members to System.IO.Stream. No
> > problems appeared when building, and only got some warnings (they can be
> > removed adding 'override' to the child streams).
> 
> This looks good to me.  It would be nice to also address the issue in
> the child streams that matter.

And adding the relative test cases for the new properties...

lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [Patch] Stream 2.0 updates

2006-03-03 Thread Miguel de Icaza
Hey,

> This patch adds some of the new 2.0 members to System.IO.Stream. No
> problems appeared when building, and only got some warnings (they can be
> removed adding 'override' to the child streams).

This looks good to me.  It would be nice to also address the issue in
the child streams that matter.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [Patch] Stream 2.0 updates

2006-02-28 Thread Carlos Alberto Cortez
Hey,

This patch adds some of the new 2.0 members to System.IO.Stream. No
problems appeared when building, and only got some warnings (they can be
removed adding 'override' to the child streams).

Carlos.
Index: Stream.cs
===
--- Stream.cs	(revisiĆ³n: 57384)
+++ Stream.cs	(copia de trabajo)
@@ -63,6 +63,14 @@
 			get;
 		}
 
+#if NET_2_0
+		public virtual bool CanTimeout {
+			get {
+return false;
+			}
+		}
+#endif
+
 		public abstract long Length
 		{
 			get;
@@ -94,6 +102,24 @@
 		{
 			Close ();
 		}
+
+		public virtual int ReadTimeout {
+			get {
+throw new InvalidOperationException ("Timeouts are not supported on this stream.");
+			}
+			set {
+throw new InvalidOperationException ("Timeouts are not supported on this stream.");
+			}
+		}
+
+		public virtual int WriteTimeout {
+			get {
+throw new InvalidOperationException ("Timeouts are not supported on this stream.");
+			}
+			set {
+throw new InvalidOperationException ("Timeouts are not supported on this stream.");
+			}
+		}
 #endif
 
 		protected virtual WaitHandle CreateWaitHandle()
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list