Click or drag to resize

CodeObjectCalculateMetrics Method

Calculate metrics for this code object and its children.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public Metrics CalculateMetrics()

Return Value

Type: Metrics
Remarks
Metrics do not include "compiler-generated" code objects, such as: - Hidden default constructors for classes with no constructors declared - Hidden bodies for delegates, with a constructor and Begin/EndInvoke methods - Hidden class declarations for anonymous types, with property declarations and getter methods - A hidden NamespaceRef to the 'global' namespace for each CodeUnit - A hidden ExternAlias to the 'global' namespace for resolving global-scope references via the Lookup operator Generated source files are included by default when metrics are calculated for a project or solution, such as files generated from XAML.
See Also