PropertyAdapter.HasMatchingSignature Method

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

Definition

Determines whether the given property can be considered a base declaration of this property.
protected virtual bool HasMatchingSignature(IProperty baseCandidate)

Parameters

baseCandidate IProperty
The other property to compare against.

Returns

bool
true if the given property can be considered a base declaration; otherwise, false.

Remarks

This method checks whether the candidate property's type is substitutable by this property's type, and whether their parameter signatures match (if applicable). It assumes that the caller has already verified other necessary conditions, such as matching names.