MethodBuilder.InitLocals 속성

정의

이 메서드의 지역 변수를 0으로 초기화하는지 여부를 지정하는 부울 값을 가져오거나 설정합니다. 이 속성의 기본값은 true입니다.

public:
 property bool InitLocals { bool get(); void set(bool value); };
public bool InitLocals { get; set; }
member this.InitLocals : bool with get, set
Public Property InitLocals As Boolean

속성 값

이 메서드의 로컬 변수가 0으로 초기화되면true 이고, 초기화되지 않으면 false입니다.

예외

현재 메서드에 대해 IsGenericMethod 속성은 true이지만 IsGenericMethodDefinition 속성은 false입니다. (가져오기 또는 설정)

설명

이 속성이 로 true설정된 경우 내보낸 MSIL에는 지역 변수의 초기화가 포함됩니다. 로 설정된 false경우 지역 변수가 초기화되지 않고 생성된 코드를 확인되지 않습니다.

적용 대상