diff options
author | Duncan Mak <duncan@mono-cvs.ximian.com> | 2002-09-15 22:46:41 +0400 |
---|---|---|
committer | Duncan Mak <duncan@mono-cvs.ximian.com> | 2002-09-15 22:46:41 +0400 |
commit | d1eb94eb677b6298c501c470976494a3a29e16df (patch) | |
tree | 833aed75d09ffdab98a5346a6a9ffd831ca17aee | |
parent | d554416afa63a0b53a9ec8e966064311719f1b41 (diff) |
2002-09-15 Duncan Mak <duncan@ximian.com>
* FileSystemWatcher.cs (FileSystemWatcher): Fixed the null-param
constructor.
svn path=/trunk/mcs/; revision=7479
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextReader.cs | 5 | ||||
-rwxr-xr-x | mcs/class/System/System.IO/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System/System.IO/FileSystemWatcher.cs | 7 |
3 files changed, 15 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlTextReader.cs b/mcs/class/System.XML/System.Xml/XmlTextReader.cs index 634115e6ddc..85a8922ba85 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextReader.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextReader.cs @@ -316,7 +316,10 @@ namespace System.Xml [MonoTODO] public override string GetAttribute (int i) { - throw new NotImplementedException (); + if (i > attributes.Count) + throw new ArgumentOutOfRangeException ("i is smaller than AttributeCount"); + else + throw new NotImplementedException (); } public override string GetAttribute (string name) diff --git a/mcs/class/System/System.IO/ChangeLog b/mcs/class/System/System.IO/ChangeLog index fb37a54651c..924f2b618a0 100755 --- a/mcs/class/System/System.IO/ChangeLog +++ b/mcs/class/System/System.IO/ChangeLog @@ -1,3 +1,8 @@ +2002-09-15 Duncan Mak <duncan@ximian.com> + + * FileSystemWatcher.cs (FileSystemWatcher): Fixed the null-param + constructor. + 2002-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com> * FileSystemWatcher.cs: IDisposable fixes. diff --git a/mcs/class/System/System.IO/FileSystemWatcher.cs b/mcs/class/System/System.IO/FileSystemWatcher.cs index 9501435e22a..3b93891619d 100644 --- a/mcs/class/System/System.IO/FileSystemWatcher.cs +++ b/mcs/class/System/System.IO/FileSystemWatcher.cs @@ -29,8 +29,13 @@ namespace System.IO { #region Constructors
public FileSystemWatcher ()
- : this (String.Empty, String.Empty)
{
+ this.notifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName;
+ this.enableRaisingEvents = false;
+ this.filter = "*.*";
+ this.includeSubdirectories = false;
+ this.internalBufferSize = 8192;
+ this.path = "";
}
public FileSystemWatcher (string path)
|