Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorDuncan Mak <duncan@mono-cvs.ximian.com>2002-09-15 22:46:41 +0400
committerDuncan Mak <duncan@mono-cvs.ximian.com>2002-09-15 22:46:41 +0400
commitd1eb94eb677b6298c501c470976494a3a29e16df (patch)
tree833aed75d09ffdab98a5346a6a9ffd831ca17aee /mcs/class
parentd554416afa63a0b53a9ec8e966064311719f1b41 (diff)
2002-09-15 Duncan Mak <duncan@ximian.com>
* FileSystemWatcher.cs (FileSystemWatcher): Fixed the null-param constructor. svn path=/trunk/mcs/; revision=7479
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/System.XML/System.Xml/XmlTextReader.cs5
-rwxr-xr-xmcs/class/System/System.IO/ChangeLog5
-rw-r--r--mcs/class/System/System.IO/FileSystemWatcher.cs7
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)