ITypeParameter.IsSatisfiableBy Method

Namespace
Kampute.DocToolkit.Metadata
Assembly
  • Kampute.DocToolkit.dll
ITypeParameter.IsSatisfiableBy(IType)Determines whether the constraints of this type parameter can be satisfied by the specified type.
ITypeParameter.IsSatisfiableBy(ITypeParameter)Determines whether the constraints of this type parameter can be satisfied by the specified type parameter.

ITypeParameter.IsSatisfiableBy(IType)

Determines whether the constraints of this type parameter can be satisfied by the specified type.
bool IsSatisfiableBy(IType type)

Parameters

type IType
The type to check against this type parameter's constraints.

Returns

bool
true if this type parameter can be satisfied by the type; otherwise, false.

Remarks

This type parameter is considered satisfiable by the specified type if all constraints defined on this type parameter are met by the provided type.

ITypeParameter.IsSatisfiableBy(ITypeParameter)

Determines whether the constraints of this type parameter can be satisfied by the specified type parameter.
bool IsSatisfiableBy(ITypeParameter other)

Parameters

other ITypeParameter
The type parameter to check against this type parameter's constraints.

Returns

bool
true if this type parameter can be satisfied by the other; otherwise, false.

Remarks

This type parameter is considered satisfiable by the specified type parameter if all constraints defined on this type parameter are met by the provided type parameter.