A couple more TODOs
authorMiguel de Icaza <miguel@gnome.org>
Fri, 14 Nov 2003 22:32:04 +0000 (22:32 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 14 Nov 2003 22:32:04 +0000 (22:32 -0000)
svn path=/trunk/mcs/; revision=20012

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/StreamReader.cs
mcs/class/corlib/System.IO/StringReader.cs
mcs/class/corlib/System.IO/TextReader.cs
mcs/class/corlib/System.Runtime.Remoting.Contexts/ChangeLog
mcs/class/corlib/System.Runtime.Remoting.Contexts/Context.cs
mcs/class/corlib/System.Runtime.Remoting.Contexts/ContextProperty.cs

index 824ef4789bf6495a42eb4f0a46c06826a326faf9..521876887c00d0623befa830a01b78fbef26b113 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-14  Miguel de Icaza  <miguel@ximian.com>
+
+       * StreamReader.cs, TextReader, StreamReader (Read): Add [Out]
+
 2003-11-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * Directory.cs: allow directory names without wildcards in the pattern.
index 757670ff0bd234b2a79c895b405ff95e45318f29..29bfccf4bc4acdaed77f518a31bda48ad37048d3 100644 (file)
@@ -64,7 +64,7 @@ namespace System.IO {
                                return -1;
                        }
 
-                       public override int Read (char[] buffer, int index, int count)
+                       public override int Read ([In, Out] char[] buffer, int index, int count)
                        {
                                return 0;
                        }
@@ -307,7 +307,7 @@ namespace System.IO {
                        return decoded_buffer [pos++];
                }
 
-               public override int Read ([In] char[] dest_buffer, int index, int count)
+               public override int Read ([In, Out] char[] dest_buffer, int index, int count)
                {
                        if (base_stream == null)
                                throw new ObjectDisposedException ("StreamReader", "Cannot read from a closed StreamReader");
index 5478dd5ef11cf3d887bee8265d34780871af9568..33db2d0d65fb05048199bd083ebca0a10b7bba0f 100644 (file)
@@ -69,9 +69,8 @@ namespace System.IO {
                // the actual number of characters read, or zero if the end of the string
                // has been reached and no characters are read.
 
-               public override int Read ([In] char [] buffer, int index, int count)
+               public override int Read ([In, Out] char[] buffer, int index, int count )
                {
-
                        CheckObjectDisposedException ();
 
                        if( buffer == null ) {
index 03c66ab884b15d0cbdd2dff8e9fe280092fe48f5..4c256f26631dd54c9f22f13bb8e01e76e53516e2 100644 (file)
@@ -43,7 +43,8 @@ namespace System.IO {
                        return -1;\r
                }\r
                \r
-               public virtual int Read ([In] char[] buffer, int index, int count)\r
+
+               public virtual int Read ([In, Out] char[] buffer, int index, int count)\r
                {\r
                        int c, i;\r
                        \r
index 3b367402df98967cd5525190e6261060f597e48b..b658b6fb988a05e3f21ba8f3cc9793b19e95778d 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-14  Miguel de Icaza  <miguel@ximian.com>
+
+       * ContextProperty.cs: Add implementaion bits.
+
 2003-07-28  Duncan Mak  <duncan@ximian.com>
 
        * ContextAttribute.cs: Removed constructor.
index 1744dd645388482891afebf39374915ee3d1e3b0..f716bf5e92bd0d37b0631e178bab936b1715b359 100644 (file)
@@ -21,7 +21,7 @@ namespace System.Runtime.Remoting.Contexts {
 
        public class Context 
        {
-               public int domain_id;
+               internal int domain_id;
                int context_id;
                int process_id;
 
index a053cef5b457a7455b82d641aab93cf9b788d6bb..e870276782073598b955b27989660c4235e39304 100644 (file)
@@ -12,14 +12,21 @@ namespace System.Runtime.Remoting.Contexts {
 
        public class ContextProperty
        {
-               [MonoTODO]
+               string name;
+               object prop;
+               
+               private ContextProperty (string name, object prop)
+               {
+                       this.name = name;
+                       this.prop = prop;
+               }
+               
                public virtual string Name {
-                       get { throw new NotImplementedException (); }
+                       get { return name; } 
                }
 
-               [MonoTODO]
                public virtual object Property {
-                       get { throw new NotImplementedException (); }
+                       get { return prop; }
                }
        }
 }