projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2008-08-21 Sebastien Pouliot <sebastien@ximian.com>
[mono.git]
/
mcs
/
class
/
corlib
/
System.IO
/
FileSystemInfo.cs
diff --git
a/mcs/class/corlib/System.IO/FileSystemInfo.cs
b/mcs/class/corlib/System.IO/FileSystemInfo.cs
index b8c1909ff24b5b0e89eddcb9299478fd544bcf19..02c59c632cd468690fa9ae65ee637902e42758ee 100644
(file)
--- a/
mcs/class/corlib/System.IO/FileSystemInfo.cs
+++ b/
mcs/class/corlib/System.IO/FileSystemInfo.cs
@@
-44,7
+44,11
@@
namespace System.IO {
#if NET_2_0
[ComVisible (true)]
#endif
#if NET_2_0
[ComVisible (true)]
#endif
+#if NET_2_1
+ public abstract class FileSystemInfo {
+#else
public abstract class FileSystemInfo : MarshalByRefObject, ISerializable {
public abstract class FileSystemInfo : MarshalByRefObject, ISerializable {
+
#region Implementation of ISerializable
[ComVisible(false)]
#region Implementation of ISerializable
[ComVisible(false)]
@@
-55,7
+59,7
@@
namespace System.IO {
}
#endregion Implementation of ISerializable
}
#endregion Implementation of ISerializable
-
+#endif
// public properties
public abstract bool Exists { get; }
// public properties
public abstract bool Exists { get; }
@@
-243,12
+247,10
@@
namespace System.IO {
{
if (path == null)
throw new ArgumentNullException ("path");
{
if (path == null)
throw new ArgumentNullException ("path");
-
if (path.Length == 0)
if (path.Length == 0)
- throw new ArgumentException ("path", Locale.GetText ("Empty path."));
-
+ throw new ArgumentException ("An empty file name is not valid.");
if (path.IndexOfAny (Path.InvalidPathChars) != -1)
if (path.IndexOfAny (Path.InvalidPathChars) != -1)
- throw new ArgumentException ("
path", Locale.GetText ("Invalid characters in path.")
);
+ throw new ArgumentException ("
Illegal characters in path."
);
}
internal MonoIOStat stat;
}
internal MonoIOStat stat;