[Serializable] |
CodeArrayIndexerExpression indexer = new CodeArrayIndexerExpression( new CodeVariableReferenceExpression("array1"), new CodeArgumentReferenceExpression("x"));
This will generate the following code:
[C#]
array1[x]
[VB]
array1(x)
ctor #1 | Overloaded:.ctor() Default constructor. This constructor is called by derived class constructors to initialize state in this type. |
ctor #2 | Overloaded:.ctor(CodeExpression targetObject, params CodeExpression[] indices) Initializes a new instance of the CodeArrayIndexerExpression class using the specified target object and indices. |
Indices | Read-only Gets or sets the index or indices of the indexer expression. |
TargetObject | Read-write Gets or sets the target object of this array indexer. |
UserData (inherited from System.CodeDom.CodeObject) |
Read-only See base class member description: System.CodeDom.CodeObject.UserData Gets or sets the user-definable data for the current object. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public CodeArrayIndexerExpression(); |
public CodeArrayIndexerExpression( |
targetObject
indices
public CodeExpressionCollection Indices {get;}
|
public CodeExpression TargetObject {get; set;}
|
public IDictionary UserData {get;}
|
~CodeArrayIndexerExpression(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |