| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- //
- // System.CodeDom.Compiler.CompilerErrorCollection.cs
- //
- // Authors:
- // Daniel Stodden ([email protected])
- // Gonzalo Paniagua Javier ([email protected])
- //
- // (C) 2002 Ximian, Inc. (http://www.ximian.com)
- //
- using System.Collections;
- namespace System.CodeDom.Compiler
- {
- [Serializable ()]
- public class CompilerErrorCollection : CollectionBase
- {
- public CompilerErrorCollection ()
- {
- }
- public CompilerErrorCollection (CompilerErrorCollection value)
- {
- InnerList.AddRange(value.InnerList);
- }
- public CompilerErrorCollection (CompilerError[] value)
- {
- InnerList.AddRange(value);
- }
- public int Add (CompilerError value)
- {
- return InnerList.Add(value);
- }
- public void AddRange (CompilerError[] value)
- {
- InnerList.AddRange(value);
- }
- public void AddRange (CompilerErrorCollection value)
- {
- InnerList.AddRange(value.InnerList);
- }
- public bool Contains (CompilerError value)
- {
- return InnerList.Contains(value);
- }
- public void CopyTo (CompilerError[] array, int index)
- {
- InnerList.CopyTo(array,index);
- }
- public int IndexOf (CompilerError value)
- {
- return InnerList.IndexOf(value);
- }
- public void Insert (int index, CompilerError value)
- {
- InnerList.Insert(index,value);
- }
- public void Remove (CompilerError value)
- {
- InnerList.Remove(value);
- }
- public CompilerError this [int index] {
- get { return (CompilerError) InnerList[index]; }
- set { InnerList[index]=value; }
- }
- public bool HasErrors {
- get {
- foreach (CompilerError error in InnerList)
- if (!error.IsWarning) return true;
- return false;
- }
- }
- public bool HasWarnings {
- get {
- foreach (CompilerError error in InnerList)
- if (error.IsWarning) return true;
- return false;
- }
- }
- }
- }
|