NDepend.API Documentation
ImmutableAttribute Class
Members 
NDepend.Attributes Namespace : ImmutableAttribute Class
This attribute can be used to declare a type as immutable.
Syntax
[AttributeUsage(AttributeTargets.Class | 
    AttributeTargets.Struct)]
public sealed class ImmutableAttribute : System.Attribute 
Remarks
A class or structure is immutable if its instance object's state, cannot be modified after it is created. This is in contrast to a mutable object, which can be modified after it is created.
The property IType.NDepend.CodeModel.IType.IsImmutable can be used to determine whether a type is immutable or not.
A code rule is provided by default to continuously make sure that all types tagged with this attribute are indeed immutable.
A code rule is provided by default to continuously make sure that all immutable types are tagged with this attribute.
Inheritance Hierarchy

System.Object
   System.Attribute
      NDepend.Attributes.ImmutableAttribute

Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ImmutableAttribute Members
NDepend.Attributes Namespace
IsImmutable Property
HasAttribute Method
HasAttribute Method
AttributeClassesThatTagMe Property