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 /mcs/class/System.XML/System.Xml | |
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
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextReader.cs | 5 |
1 files changed, 4 insertions, 1 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) |