Author: gert
Date: 2007-08-24 07:22:04 -0400 (Fri, 24 Aug 2007)
New Revision: 84799
Modified:
trunk/mcs/class/corlib/System.Resources/ChangeLog
trunk/mcs/class/corlib/System.Resources/ResourceReader.cs
Log:
* ResourceReader.cs: Fixed exception message to match MS. Removed
duplicate checks from string ctor.
Modified: trunk/mcs/class/corlib/System.Resources/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Resources/ChangeLog 2007-08-24 10:56:30 UTC
(rev 84798)
+++ trunk/mcs/class/corlib/System.Resources/ChangeLog 2007-08-24 11:22:04 UTC
(rev 84799)
@@ -1,3 +1,8 @@
+2007-08-24 Gert Driesen <[EMAIL PROTECTED]>
+
+ * ResourceReader.cs: Fixed exception message to match MS. Removed
+ duplicate checks from string ctor.
+
2007-08-09 Atsushi Enomoto <[EMAIL PROTECTED]>
* ResourceReader.cs : implemented GetResourceData(). Resources with
Modified: trunk/mcs/class/corlib/System.Resources/ResourceReader.cs
===================================================================
--- trunk/mcs/class/corlib/System.Resources/ResourceReader.cs 2007-08-24
10:56:30 UTC (rev 84798)
+++ trunk/mcs/class/corlib/System.Resources/ResourceReader.cs 2007-08-24
11:22:04 UTC (rev 84799)
@@ -87,7 +87,7 @@
public ResourceReader (Stream stream)
{
if (stream == null)
- throw new ArgumentNullException ("Value cannot
be null.");
+ throw new ArgumentNullException ("stream");
if (!stream.CanRead)
throw new ArgumentException ("Stream was not
readable.");
@@ -100,12 +100,6 @@
public ResourceReader (string fileName)
{
- if (fileName == null)
- throw new ArgumentNullException ("Path cannot
be null.");
-
- if (!System.IO.File.Exists (fileName))
- throw new FileNotFoundException ("Could not
find file " + Path.GetFullPath(fileName));
-
reader = new BinaryReader (new FileStream(fileName,
FileMode.Open, FileAccess.Read, FileShare.Read));
formatter = new BinaryFormatter(null, new
StreamingContext(StreamingContextStates.File|StreamingContextStates.Persistence));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches