dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO FileStream.cs,1.12


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO FileStream.cs,1.12,1.13
Date: Mon, 21 Apr 2003 17:10:26 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv16893/runtime/System/IO

Modified Files:
        FileStream.cs 
Log Message:


Add the "Name" property to "System.IO.FileStream".


Index: FileStream.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/FileStream.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** FileStream.cs       19 Apr 2003 04:03:04 -0000      1.12
--- FileStream.cs       21 Apr 2003 21:10:24 -0000      1.13
***************
*** 41,44 ****
--- 41,45 ----
        private bool ownsHandle;
        private bool isAsync;
+       private String path;
  
        // Buffer information.
***************
*** 152,155 ****
--- 153,157 ----
                                this.ownsHandle = true;
                                this.isAsync = useAsync;
+                               this.path = path;
                                this.bufferSize = bufferSize;
                                this.buffer = new byte [bufferSize];
***************
*** 228,232 ****
  
        // Internal constructor used by IsolatedStorageFileStream.
!       internal FileStream() {}
  #endif
  
--- 230,237 ----
  
        // Internal constructor used by IsolatedStorageFileStream.
!       internal FileStream(String path)
!                       {
!                               this.path = path;
!                       }
  #endif
  
***************
*** 840,843 ****
--- 845,868 ----
                                }
                        }
+ 
+ #if !ECMA_COMPAT
+ 
+       // Get the name of the file underlying this stream object.
+       public String Name
+                       {
+                               get
+                               {
+                                       if(path != null)
+                                       {
+                                               return path;
+                                       }
+                                       else
+                                       {
+                                               return _("IO_UnknownFile");
+                                       }
+                               }
+                       }
+ 
+ #endif // !ECMA_COMPAT
  
  }; // class FileStream





reply via email to

[Prev in Thread] Current Thread [Next in Thread]