#if NET_2_0
[ComVisible (true)]
#endif
+#if NET_2_1
+ public abstract class FileSystemInfo {
+#else
public abstract class FileSystemInfo : MarshalByRefObject, ISerializable {
+
#region Implementation of ISerializable
[ComVisible(false)]
}
#endregion Implementation of ISerializable
-
+#endif
// public properties
public abstract bool Exists { get; }
{
if (path == null)
throw new ArgumentNullException ("path");
-
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)
- throw new ArgumentException ("path", Locale.GetText ("Invalid characters in path."));
+ throw new ArgumentException ("Illegal characters in path.");
}
internal MonoIOStat stat;