AdapterHelper.EquivalentParameters Method

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

Definition

Determines whether two parameter lists represent equivalent signatures from the perspective of method overriding or interface implementation.
public static bool EquivalentParameters(IReadOnlyList<IParameter> targetParameters, IReadOnlyList<IParameter> sourceParameters)

Parameters

targetParameters IReadOnlyList<IParameter>
The overridden or interface parameter list to compare against.
sourceParameters IReadOnlyList<IParameter>
The overriding or implementing parameter list to compare.

Returns

bool
true if the parameter lists are equivalent; otherwise, false.

Exceptions

ArgumentNullException
Thrown when targetParameters or sourceParameters is null.