X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FMono.Xml%2FSmallXmlParser.cs;fp=mcs%2Fclass%2Fcorlib%2FMono.Xml%2FSmallXmlParser.cs;h=94fa2d1465bb90bf09d90fe6cbbaa647eb3e124c;hb=9899a5f2496f2477547039594c0bdb6c6755c81e;hp=19d56cc51a4934276be65ef5760b5f833685411b;hpb=65b8ba493d7e7cc784fdd5002d804cc6f8172e19;p=mono.git diff --git a/mcs/class/corlib/Mono.Xml/SmallXmlParser.cs b/mcs/class/corlib/Mono.Xml/SmallXmlParser.cs index 19d56cc51a4..94fa2d1465b 100644 --- a/mcs/class/corlib/Mono.Xml/SmallXmlParser.cs +++ b/mcs/class/corlib/Mono.Xml/SmallXmlParser.cs @@ -32,6 +32,7 @@ using System; using System.Collections; +using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; @@ -113,28 +114,28 @@ namespace Mono.Xml } public string GetName (int i) { - return (string) attrNames [i]; + return attrNames [i]; } public string GetValue (int i) { - return (string) attrValues [i]; + return attrValues [i]; } public string GetValue (string name) { for (int i = 0; i < attrNames.Count; i++) - if ((string) attrNames [i] == name) - return (string) attrValues [i]; + if (attrNames [i] == name) + return attrValues [i]; return null; } public string [] Names { - get { return (string []) attrNames.ToArray (typeof (string)); } + get { return attrNames.ToArray (); } } public string [] Values { - get { return (string []) attrValues.ToArray (typeof (string)); } + get { return attrValues.ToArray (); } } - ArrayList attrNames = new ArrayList (); - ArrayList attrValues = new ArrayList (); + List attrNames = new List (); + List attrValues = new List (); internal void Clear () {