Open sandboxFocus

Enum EnumerableKind

Specifies the kind of enumerable or enumerator type returned by a method.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum EnumerableKind
Remarks

To get the EnumerableKind of a method, use the GetIteratorInfo(IMethod) extension method, which returns an IteratorInfo struct. The EnumerableKind property contains the enumerable kind.

This enum distinguishes between generic and non-generic (untyped) variants, as well as between synchronous and async variants.

Fields

Name Description
IAsyncEnumerable

A method returning System.Collections.Generic.IAsyncEnumerable.

IAsyncEnumerator

A method returning System.Collections.Generic.IAsyncEnumerator.

IEnumerable

A method returning a generic IEnumerable<T>.

IEnumerator

A method returning a generic IEnumerator<T>.

None

None. The method does not return an enumerable or enumerator.

UntypedIEnumerable

A method returning a non-generic IEnumerable.

UntypedIEnumerator

A method returning a non-generic IEnumerator.

See Also