CodeGenerationUtilities.CalculateInheritanceDepth Method
Given a DomainClass, calculate the inheritance depth in generated code (taking into consideration of double-derived base classes). This is used to determine whether we need a SuppressMessage attribute for "excessive inheritance".
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
Public Shared Function CalculateInheritanceDepth ( _
domainClass As DomainClass _
) As Integer
public static int CalculateInheritanceDepth(
DomainClass domainClass
)
public:
static int CalculateInheritanceDepth(
DomainClass^ domainClass
)
static member CalculateInheritanceDepth :
domainClass:DomainClass -> int
public static function CalculateInheritanceDepth(
domainClass : DomainClass
) : int
Parameters
- domainClass
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass
Return Value
Type: System.Int32
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.