-// \r
-// System.Web.ParserErrorCollection.cs\r
-//\r
-// Authors:\r
-// Lluis Sanchez Gual (lluis@novell.com)\r
-//\r
-// (C) 2004 Novell, Inc (http://www.novell.com)\r
-//\r
+//
+// System.Web.ParserErrorCollection.cs
+//
+// Authors:
+// Lluis Sanchez Gual (lluis@novell.com)
+//
+// (C) 2004-2009 Novell, Inc (http://www.novell.com)
+//
//
// Permission is hereby granted, free of charge, to any person obtaining
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-\r
-#if NET_2_0\r
-\r
-using System.Collections;\r
-using System.Runtime.Serialization;\r
-\r
-namespace System.Web {\r
-\r
- [Serializable]\r
- public sealed class ParserErrorCollection: CollectionBase\r
- {\r
- public ParserErrorCollection ()\r
- {\r
- }\r
-\r
- public ParserErrorCollection (ParserError[] errors)\r
- {\r
- InnerList.AddRange (errors);\r
- }\r
- \r
- public ParserError this [int index]\r
- {\r
- get { return (ParserError) InnerList [index]; }\r
- }\r
- \r
- public int Add (ParserError error)\r
- {\r
- return List.Add (error);\r
- }\r
- \r
- public void AddRange (ParserErrorCollection collection)\r
- {\r
- InnerList.AddRange (collection);\r
- }\r
- \r
- public void AddRange (ParserError[] errors)\r
- {\r
- InnerList.AddRange (errors);\r
- }\r
- \r
- public bool Contains (ParserError error)\r
- {\r
- return InnerList.Contains (error);\r
- }\r
- \r
- public void CopyTo (ParserError[] errors, int index)\r
- {\r
- List.CopyTo (errors, index);\r
- }\r
- \r
- public int IndexOf (ParserError error)\r
- {\r
- return InnerList.IndexOf (error);\r
- }\r
- \r
- public void Insert (int index, ParserError error)\r
- {\r
- InnerList.Insert (index, error);\r
- }\r
- \r
- public void Remove (ParserError error)\r
- {\r
- InnerList.Remove (error);\r
- }\r
- }\r
-}\r
-\r
-#endif\r
+
+using System.Collections;
+using System.Runtime.Serialization;
+
+namespace System.Web
+{
+ [Serializable]
+ public sealed class ParserErrorCollection: CollectionBase
+ {
+ public ParserErrorCollection ()
+ {
+ }
+
+ public ParserErrorCollection (ParserError[] errors)
+ {
+ InnerList.AddRange (errors);
+ }
+
+ public ParserError this [int index]
+ {
+ get { return (ParserError) InnerList [index]; }
+ set { InnerList[index] = value; }
+ }
+
+ public int Add (ParserError error)
+ {
+ return List.Add (error);
+ }
+
+ public void AddRange (ParserErrorCollection collection)
+ {
+ InnerList.AddRange (collection);
+ }
+
+ public void AddRange (ParserError[] errors)
+ {
+ InnerList.AddRange (errors);
+ }
+
+ public bool Contains (ParserError error)
+ {
+ return InnerList.Contains (error);
+ }
+
+ public void CopyTo (ParserError[] errors, int index)
+ {
+ List.CopyTo (errors, index);
+ }
+
+ public int IndexOf (ParserError error)
+ {
+ return InnerList.IndexOf (error);
+ }
+
+ public void Insert (int index, ParserError error)
+ {
+ InnerList.Insert (index, error);
+ }
+
+ public void Remove (ParserError error)
+ {
+ InnerList.Remove (error);
+ }
+ }
+}
+