RunTimeAspectHelper Class
Defines helper methods used by code transformed by aspects.
Inheritance
Namespace: Metalama.Framework.RunTime
Assembly: Metalama.Framework.RunTime.dll
Syntax
public static class RunTimeAspectHelper : Object
Methods
Name | Description |
---|---|
Buffer(IEnumerable) | Evaluates an System.Collections.IEnumerable and stores the result into a |
Buffer(IEnumerator) | Evaluates an System.Collections.IEnumerator, stores the result into a |
Buffer<T>(IEnumerable<T>) | Evaluates an System.Collections.Generic.IEnumerable<> and stores the result into a System.Collections.Generic.List<>. If the enumerable is already a list, returns the input list. The intended side effect of this method is to completely evaluate the input enumerable. |
Buffer<T>(IEnumerator<T>) | Evaluates an System.Collections.Generic.IEnumerator<>, stores the result into a System.Collections.Generic.List<> and returns an enumerator for this list. If the enumerator is already a list enumerator, returns the input enumerator. The intended side effect of this method is to completely evaluate the input enumerator. |
BufferAsync<T>(IAsyncEnumerable<T>, CancellationToken) | Evaluates an System.Collections.Generic.IAsyncEnumerable<> and stores the result into an AsyncEnumerableList<T>. If the enumerable is already an AsyncEnumerableList<T>, returns the input list. The intended side effect of this method is to completely evaluate the input enumerable. |
BufferAsync<T>(IAsyncEnumerator<T>, CancellationToken) | Evaluates an System.Collections.Generic.IAsyncEnumerator<>, stores the result into an AsyncEnumerableList<T> and returns an enumerator for this object. If the enumerator is already an AsyncEnumerableList<T> enumerator, returns the input enumerator. The intended side effect of this method is to completely evaluate the input enumerator. |
BufferToListAsync<T>(IAsyncEnumerator<T>, CancellationToken) | Evaluates an System.Collections.Generic.IAsyncEnumerator<>, stores the result into an AsyncEnumerableList<T> and returns the list. If the enumerator is already an AsyncEnumerableList<T> enumerator, returns the parent AsyncEnumerableList<T>. The intended side effect of this method is to completely evaluate the input enumerator. |