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
otherIParameter- The parameter to compare against the current parameter.
Returns
- bool
trueif the specified parameter can be used in place of the current parameter; otherwise,false.

- Both types are identical.
- Both types are decorated types (array, pointer, by-ref, or nullable) with identical modifiers and compatible element types.
- Both types are generic type parameters with identical constraints and declaring member ancestry.
- The current type is an open generic type parameter, and the specified type satisfies all of its constraints.
For return parameters of non-interface members, to support covariant return types in method overrides, the specified parameter can also satisfy the current parameter if any of the following conditions are met: