IParameter.IsSatisfiableBy Method

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

Definition

Determines whether the specified parameter can be used in place of the current parameter.
bool IsSatisfiableBy(IParameter other)

Parameters

other IParameter
The parameter to compare against the current parameter.

Returns

bool
true if the specified parameter can be used in place of the current parameter; otherwise, false.

Remarks

This method behaviour depends on the type of the current parameter:
  • When the current parameter has a non-generic type, this method returns true when the given parameter is an exact match.
  • When the current parameter has an open generic type, this method returns true when the given parameter is a closed constructed type based on the same generic type definition.