NDepend.API Documentation
SizeOfInst Property (IField)
NDepend.CodeModel Namespace > IField Interface : SizeOfInst Property
Gets a numeric nullable value measuring this field contribution, in bytes, to the parent's IType.IType.SizeOfInst value.
Syntax
Nullable<ushort> SizeOfInst {get;}

Property Value

null if this field is declared in a third-party assembly.
null if this field is static.
Otherwise returns this field SizeOfInst numeric value.
Remarks
Size of Instance code metric description:
SizeOfInst for an instance field with a reference type field (class, interface, delegate) counts for 4 bytes.
SizeOfInst for an instance field with a value type field (structure, int, byte, double...) is equal to the value type IType.IType.SizeOfInst value.
SizeOfInst for a static field is null.
Requirements

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

See Also

Reference

IField Interface
IField Members