AdapterHelper Class

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

Definition

Provides helper methods for adapter implementations.
public static class AdapterHelper
Inheritance

Thread Safety

Public static members of the type are guaranteed to be thread-safe.

Methods

EquivalentParameters(IReadOnlyList<IParameter>, IReadOnlyList<IParameter>)Determines whether two parameter lists represent equivalent signatures from the perspective of method overriding or interface implementation.
HaveSameDeclarationScope(Type, Type)Determines whether two types originate from the same declaring type hierarchy.
IsSubstitutableBy(IType, IType)Determines whether a target type can substitute a source type, where the generic type parameters of a type that appear in the source type, also within arrays, pointers, by-ref and nullable types, or as type arguments of constructed generic types, can be substituted by any type that satisfies their constraints.
IsValidTypeSubstitution(IMember, IType, IMember, IType)Determines whether a target type is a valid substitution for a source type in the context of method overriding or interface implementation.
SplitExplicitName(string)Splits an explicit interface implementation name into its interface and member components.