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, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

IType Interface
IType Members