OpCodes.Ldelem_U2 필드

정의

지정된 배열 인덱스의 unsigned int16 형식을 갖는 요소를 계산 스택 맨 위에 int32로 로드합니다.

public: static initonly System::Reflection::Emit::OpCode Ldelem_U2;
public static readonly System.Reflection.Emit.OpCode Ldelem_U2;
 staticval mutable Ldelem_U2 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Ldelem_U2 As OpCode 

필드 값

OpCode

설명

다음 표에서는 간단한 참조 요약과 함께 명령의 16진수 및 MSIL(Microsoft Intermediate Language) 어셈블리 형식을 나열합니다.

서식 어셈블리 형식 Description
93 ldelem.u2 Loads the element with type unsigned int16 at index onto the top of the stack as an int32.

스택 전환 동작은 순차적으로 다음과 같습니다.

  1. 개체 참조 array 가 스택에 푸시됩니다.

  2. 인덱스 값 index 이 스택에 푸시됩니다.

  3. index``array 스택에서 팝됩니다. 위치에 index array 저장된 값이 조회됩니다.

  4. 값이 스택에 푸시됩니다.

ldelem.u2 명령은 인덱 index 스(형식 native int)가 있는 요소의 값을 0부터 시작하는 1차원 배열 array 에 로드하고 스택 맨 위에 배치합니다. 배열은 개체이므로 형식 O의 값으로 표시됩니다.

반환 값 ldelem.u2 은 .입니다 int16.

4바이트 미만의 정수 값은 평가 스택에 로드될 때 확장되지 않음native int으로 확장 int32 됩니다.

NullReferenceException 는 null 참조인 경우 array throw됩니다.

ArrayTypeMismatchException 는 필수 형식의 요소를 포함하지 않는 경우 array throw됩니다.

IndexOutOfRangeException가 음수이거나 경계보다 array크면 index throw됩니다.

다음 Emit 메서드 오버로드는 opcode를 ldelem.u2 사용할 수 있습니다.

적용 대상