Files
mono/mcs/class/System/System.CodeDom.Compiler/CompilerErrorCollection.cs
T
Duncan Mak 544d9defeb 2003-01-10 Duncan Mak <[email protected]>
* list.unix (CSharpCodeCompiler): Add
	Microsoft.Charp.CSharpCodeCompiler for Sean Kasun.

	* CSharpCodeCompiler.cs:
	* CSharpCodeProvider.cs: Patch from Sean Kasun
	<[email protected]> to implement CSharpCodeCompiler.

	* CompilerErrorCollection.cs:
	* CompilerParameters.cs: Patch from Sean Kasun
	<[email protected]> implementing most of the MonoTODOs in
	CompilerErrorCollection and the CompilerParameters overloads in CompilerParameters.cs.

svn path=/trunk/mcs/; revision=10362
2003-01-10 21:38:30 +00:00

97 lines
1.8 KiB
C#

//
// System.CodeDom.Compiler CompilerErrorCollection Class implementation
//
// 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
{
[MonoTODO]
public class CompilerErrorCollection : CollectionBase
{
[MonoTODO]
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;
}
}
}
}