다음을 통해 공유


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

속성 값

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

구현

설명

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

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

이 속성의 값을 검색하는 것은 O(1) 작업입니다.

적용 대상

추가 정보