Array.IsFixedSize 속성

정의

Array의 크기가 고정되어 있는지 여부를 나타내는 값을 가져옵니다.

public:
 property bool IsFixedSize { bool get(); };
public:
 virtual property bool IsFixedSize { bool get(); };
public bool IsFixedSize { get; }
public virtual bool IsFixedSize { get; }
member this.IsFixedSize : bool
Public ReadOnly Property IsFixedSize As Boolean
Public Overridable ReadOnly Property IsFixedSize As Boolean

속성 값

Boolean

이 속성은 모든 배열에 대해 항상 true 입니다.

구현

설명

Array 는 인터페이스에 IsFixedSize 필요하기 때문에 속성을 구현합니다 System.Collections.IList .

크기가 고정된 배열은 배열을 만든 후 요소를 추가하거나 제거할 수 없지만 기존 요소를 수정할 수 있습니다.

이 속성 값을 검색하는 것은 O(1) 연산입니다.

적용 대상

추가 정보