ImmutableAttribute クラス

定義

Immutable 属性は、マークされたクラスまたは構造体のインスタンスが作成された後に変更されていないことを示します。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)]
public sealed class ImmutableAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)>]
type ImmutableAttribute = class
    inherit Attribute
Public NotInheritable Class ImmutableAttribute
Inherits Attribute
継承
ImmutableAttribute
属性

注釈

これは、インスタンスの作成後にサブオブジェクトも変更されないことを意味します。

コンストラクター

ImmutableAttribute()

Immutable 属性は、マークされたクラスまたは構造体のインスタンスが作成された後に変更されていないことを示します。

適用対象