NDepend.API Documentation
IsReadOnly Property (IType)
NDepend.CodeModel Namespace > IType Interface : IsReadOnly Property
Gets a value indicating whether this type is declared with the C# keyword readonly.
Syntax
bool IsReadOnly {get;}
Remarks
So far only structures can be declared as readonly. Doing so leads the C# compiler and the JIT to perform some low-level optimizations.
Requirements

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

See Also

Reference

IType Interface
IType Members