[Mono-list] System.IO.FileInfo patch

Mike Gray mike@mikegray.org
Sat, 04 May 2002 08:48:49 -0400


Adding the missing Create method.

Mike Gray


Index: FileInfo.cs
===================================================================
RCS file: /mono/mcs/class/corlib/System.IO/FileInfo.cs,v
retrieving revision 1.11
diff -u -r1.11 FileInfo.cs
--- FileInfo.cs	1 Apr 2002 20:22:37 -0000	1.11
+++ FileInfo.cs	4 May 2002 04:00:45 -0000
@@ -82,6 +82,11 @@
		}

		// filestream methods
+
+                public FileStream Create ()
+                {
+                        return File.Create(FullPath);
+                }

		public FileStream OpenRead () {
			return Open (FileMode.Open, FileAccess.Read);




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.