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)

Gets information about the async characteristics of a method, including whether it is awaitable and its result type.

GetIteratorInfo(IMethod)

Gets information about whether a method is a yield-based iterator and returns an IteratorInfo value exposing details about the iterator, such as the ItemType and EnumerableKind.

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.

See Also