Open sandboxFocus

Method HasCovariantReturnType

HasCovariantReturnType(IMethod)

Determines whether a method override has a covariant return type with respect to the base implementation.

Declaration
[CompileTime]
public static bool HasCovariantReturnType(this IMethod method)
Parameters
Type Name Description
IMethod method

The method to check.

Returns
Type Description
bool

true if the method has a covariant return type compared to its overridden method; otherwise, false.

See Also