TypeParameterAdapter.IsSatisfiableBy Method

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

TypeParameterAdapter.IsSatisfiableBy(IType)

Determines whether the constraints of this type parameter can be satisfied by the specified type.
public virtual 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.

TypeParameterAdapter.IsSatisfiableBy(ITypeParameter)

Determines whether the constraints of this type parameter can be satisfied by the specified type parameter.
public virtual 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.