CodeIndexerExpression 클래스

정의

개체의 인덱서 속성에 대한 참조를 나타냅니다.

public ref class CodeIndexerExpression : System::CodeDom::CodeExpression
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public class CodeIndexerExpression : System.CodeDom.CodeExpression
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type CodeIndexerExpression = class
    inherit CodeExpression
Public Class CodeIndexerExpression
Inherits CodeExpression
상속
CodeIndexerExpression
특성

예제

다음 예제에서는 현재 개체에 대 한 CodeIndexerExpression 형식 인덱서를 참조 하는 데 사용 하는 방법을 보여 줍니다.

System.CodeDom.CodeIndexerExpression indexerExpression = new CodeIndexerExpression( new CodeThisReferenceExpression(), new CodePrimitiveExpression(1) );

// A C# code generator produces the following source code for the preceeding example code:

//        this[1];
Dim indexerExpression = New CodeIndexerExpression(New CodeThisReferenceExpression(), New CodePrimitiveExpression(1))

' A Visual Basic code generator produces the following source code for the preceeding example code:

'       Me(1)

설명

CodeIndexerExpression 코드 인덱서 또는 배열이 아닌 인덱서에 대한 참조를 나타내는 데 사용할 수 있습니다. 배열 인덱서에 대한 참조를 나타내는 데 사용합니다 CodeArrayIndexerExpression .

생성자

Name Description
CodeIndexerExpression()

CodeIndexerExpression 클래스의 새 인스턴스를 초기화합니다.

CodeIndexerExpression(CodeExpression, CodeExpression[])

지정된 대상 개체 및 인덱스를 사용하여 클래스의 CodeIndexerExpression 새 인스턴스를 초기화합니다.

속성

Name Description
Indices

인덱서 식의 인덱스 컬렉션을 가져옵니다.

TargetObject

인덱싱할 수 있는 대상 개체를 가져오거나 설정합니다.

UserData

현재 개체에 대한 사용자 정의 데이터를 가져옵니다.

(다음에서 상속됨 CodeObject)

메서드

Name Description
Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상