다음을 통해 공유


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

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

CodeGenerationUtilities Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace