Open sandboxFocus

Class MethodExtensions

Extension methods for the IMethod interface.

Inheritance
MethodExtensions
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class MethodExtensions

Methods

Name Description
GetAsyncInfo(IMethod)
GetIteratorInfo(IMethod)

Determines whether a method is a yield-based iterator and returns an IteratorInfo value exposing details about the iterator.

HasCovariantReturnType(IMethod)

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

HasCovariantType(IPropertyOrIndexer)

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