Open sandboxFocus

Method HasCovariantType

HasCovariantType(IPropertyOrIndexer)

Determines whether a read-only property or indexer override has a covariant type with respect to the base implementation.

Declaration
[CompileTime]
public static bool HasCovariantType(this IPropertyOrIndexer propertyOrIndexer)
Parameters
Type Name Description
IPropertyOrIndexer propertyOrIndexer

The property or indexer to check.

Returns
Type Description
bool

true if the property or indexer has a covariant type compared to its overridden member; otherwise, false.

See Also