mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
57 lines
1.0 KiB
C#
57 lines
1.0 KiB
C#
//
|
|
// System.CodeDom CodeArrayIndexerExpression Class implementation
|
|
//
|
|
// Author:
|
|
// Daniel Stodden ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc.
|
|
//
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.CodeDom {
|
|
|
|
[Serializable]
|
|
[ClassInterface(ClassInterfaceType.AutoDispatch)]
|
|
[ComVisible(true)]
|
|
public class CodeArrayIndexerExpression
|
|
: CodeExpression
|
|
{
|
|
private CodeExpressionCollection indices;
|
|
private CodeExpression targetObject;
|
|
|
|
//
|
|
// Constructors
|
|
//
|
|
public CodeArrayIndexerExpression()
|
|
{
|
|
}
|
|
|
|
public CodeArrayIndexerExpression( CodeExpression targetObject, params CodeExpression[] indices )
|
|
{
|
|
this.targetObject = targetObject;
|
|
this.Indices.AddRange( indices );
|
|
}
|
|
|
|
//
|
|
// Properties
|
|
//
|
|
public CodeExpressionCollection Indices {
|
|
get {
|
|
if ( indices == null )
|
|
indices = new CodeExpressionCollection();
|
|
return indices;
|
|
}
|
|
}
|
|
|
|
public CodeExpression TargetObject {
|
|
get {
|
|
return targetObject;
|
|
}
|
|
set {
|
|
targetObject = value;
|
|
}
|
|
}
|
|
}
|
|
}
|