AdapterHelper.HaveSameDeclarationScope Method

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

Determines whether two types originate from the same declaring type hierarchy.
public static bool HaveSameDeclarationScope(Type a, Type b)

Parameters

a Type
The first type to compare.
b Type
The second type to compare.

Returns

bool
true if both types originate from the same declaring type hierarchy; otherwise, false.

Remarks

This method compares types based on their names and declaring types, ignoring assembly, module information, and generic type arguments. It is useful for determining type equivalence in scenarios such as method overriding and interface implementation.