CodeGenerationUtilities.CalculateInheritanceDepth(DomainClass) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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