[Mono-devel-list] Patch for #58804

Urs C Muff umuff at quark.com
Tue May 25 23:56:54 EDT 2004


Index: ChangeLog
===================================================================
RCS file: /cvs/public/mcs/class/corlib/System.IO/ChangeLog,v
retrieving revision 1.255
diff -u -r1.255 ChangeLog
--- ChangeLog	22 May 2004 21:42:10 -0000	1.255
+++ ChangeLog	26 May 2004 03:07:37 -0000
@@ -1,3 +1,8 @@
+2004-05-25  grompf at sublimeintervention.com (grompf)
+	* FileInfo.cs: Fix for #58804
+The MS spec states that FileInfo.ToString() should return the full path as seen:
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiofileinfoclasstostringtopic.asp
+
 2004-05-22  Duncan Mak  <duncan at ximian.com>
 
 	* Directory.cs: Reformat the whole file to use Unix line endings
Index: FileInfo.cs
===================================================================
RCS file: /cvs/public/mcs/class/corlib/System.IO/FileInfo.cs,v
retrieving revision 1.19
diff -u -r1.19 FileInfo.cs
--- FileInfo.cs	16 May 2004 14:53:53 -0000	1.19
+++ FileInfo.cs	26 May 2004 03:07:37 -0000
@@ -165,7 +165,7 @@
 		}
 
 		public override string ToString () {
-			return Name;
+			return FullPath;
 		}
 	}
 }



More information about the Mono-devel-list mailing list