mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
- System.CodeDom: lotsa corrections - System.CodeDom.Compiler: CodeGenerator about 80% complete - Microsoft.CSharp: CSharpCodegenerator intro svn path=/trunk/mcs/; revision=4980
101 lines
2.1 KiB
C#
Executable File
101 lines
2.1 KiB
C#
Executable File
//
|
|
// System.CodeDom CodeParameterDeclarationExpressionCollection Class implementation
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
// Daniel Stodden ([email protected])
|
|
//
|
|
// (C) 2001 Ximian, Inc.
|
|
//
|
|
|
|
using System.Runtime.InteropServices;
|
|
using System.Collections;
|
|
|
|
namespace System.CodeDom
|
|
{
|
|
[Serializable]
|
|
[ClassInterface(ClassInterfaceType.AutoDispatch)]
|
|
[ComVisible(true)]
|
|
public class CodeParameterDeclarationExpressionCollection
|
|
: CollectionBase
|
|
{
|
|
//
|
|
// Constructors
|
|
//
|
|
public CodeParameterDeclarationExpressionCollection()
|
|
{
|
|
}
|
|
|
|
public CodeParameterDeclarationExpressionCollection( CodeParameterDeclarationExpression[] value )
|
|
{
|
|
AddRange( value );
|
|
}
|
|
|
|
public CodeParameterDeclarationExpressionCollection( CodeParameterDeclarationExpressionCollection value )
|
|
{
|
|
AddRange( value );
|
|
}
|
|
|
|
//
|
|
// Properties
|
|
//
|
|
public CodeParameterDeclarationExpression this[int index]
|
|
{
|
|
get {
|
|
return (CodeParameterDeclarationExpression)List[index];
|
|
}
|
|
set {
|
|
List[index] = value;
|
|
}
|
|
}
|
|
|
|
//
|
|
// Methods
|
|
//
|
|
public int Add (CodeParameterDeclarationExpression value)
|
|
{
|
|
return List.Add( value );
|
|
}
|
|
|
|
public void AddRange (CodeParameterDeclarationExpression [] value )
|
|
{
|
|
foreach ( CodeParameterDeclarationExpression elem in value )
|
|
Add( elem );
|
|
}
|
|
|
|
public void AddRange (CodeParameterDeclarationExpressionCollection value)
|
|
{
|
|
foreach ( CodeParameterDeclarationExpression elem in value )
|
|
Add( elem );
|
|
}
|
|
|
|
public bool Contains( CodeParameterDeclarationExpression value )
|
|
{
|
|
return List.Contains( value );
|
|
}
|
|
|
|
public void CopyTo( CodeParameterDeclarationExpression[] array, int index )
|
|
{
|
|
List.CopyTo( array, index );
|
|
}
|
|
|
|
public int IndexOf( CodeParameterDeclarationExpression value )
|
|
{
|
|
return List.IndexOf( value );
|
|
}
|
|
|
|
public void Insert( int index, CodeParameterDeclarationExpression value )
|
|
{
|
|
List.Insert( index, value );
|
|
}
|
|
|
|
public void Remove( CodeParameterDeclarationExpression value )
|
|
{
|
|
int index = IndexOf( value );
|
|
if ( index < 0 )
|
|
throw( new ArgumentException( "The specified object is not found in the collection" ) );
|
|
RemoveAt( index );
|
|
}
|
|
}
|
|
}
|