NDepend.API Documentation
NbILInstructions Property (ICodeContainer)
NDepend.CodeModel Namespace > ICodeContainer Interface : NbILInstructions Property
Gets a numeric nullable value counting the number of IL instructions for this code element.
Syntax
Nullable<uint> NbILInstructions {get;}

Property Value

null if this code element is defined in a third-party assembly.
null if this code element is an interface, an enumeration or an abstract method.
Otherwise returns the number of IL instructions for this code element.
Remarks
The number of IL instructions can vary depending if an application assembly is compiled in debug or in release mode.
Indeed compiler's optimizations can modify the number of IL instructions.
For example a compiler can add some nop IL instructions in debug mode, to handle Edit and Continue, or to allow attaching an IL instruction to a curly brace.
Requirements

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

See Also

Reference

ICodeContainer Interface
ICodeContainer Members