Freigeben über


CodeGenerationUtilities.CalculateInheritanceDepth(DomainClass) Method

Definition

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".

public:
 static int CalculateInheritanceDepth(Microsoft::VisualStudio::Modeling::DslDefinition::DomainClass ^ domainClass);
public static int CalculateInheritanceDepth (Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass domainClass);
static member CalculateInheritanceDepth : Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass -> int
Public Shared Function CalculateInheritanceDepth (domainClass As DomainClass) As Integer

Parameters

domainClass
DomainClass

Returns

Applies to