ImmutableAttribute Class

Definition

The Immutable attribute indicates that instances of the marked class or struct are never modified after they are created.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)]
public sealed class ImmutableAttribute : Attribute
Inheritance
ImmutableAttribute
Attributes

Remarks

Note that this implies that sub-objects are also not modified after the instance is created.

Constructors

Applies to

Product Versions
.NET Orleans 1.5.10, 3.4.5, 3.6.0