536cd135cc
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
71 lines
2.1 KiB
C#
71 lines
2.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="CodeArrayIndexerExpression.cs" company="Microsoft">
|
|
//
|
|
// <OWNER>Microsoft</OWNER>
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.CodeDom {
|
|
|
|
using System.Diagnostics;
|
|
using System;
|
|
using Microsoft.Win32;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Represents an array indexer expression.
|
|
/// </para>
|
|
/// </devdoc>
|
|
[
|
|
ClassInterface(ClassInterfaceType.AutoDispatch),
|
|
ComVisible(true),
|
|
Serializable,
|
|
]
|
|
public class CodeArrayIndexerExpression : CodeExpression {
|
|
private CodeExpression targetObject;
|
|
private CodeExpressionCollection indices;
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CodeArrayIndexerExpression() {
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CodeArrayIndexerExpression(CodeExpression targetObject, params CodeExpression[] indices) {
|
|
this.targetObject = targetObject;
|
|
this.indices = new CodeExpressionCollection();
|
|
this.indices.AddRange(indices);
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CodeExpression TargetObject {
|
|
get {
|
|
return targetObject;
|
|
}
|
|
set {
|
|
targetObject = value;
|
|
}
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CodeExpressionCollection Indices {
|
|
get {
|
|
if (indices == null) {
|
|
indices = new CodeExpressionCollection();
|
|
}
|
|
return indices;
|
|
}
|
|
}
|
|
}
|
|
}
|