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) 操作になります。

適用対象

こちらもご覧ください