Various extensions to succinctly produce IEnumerables out of single items.
More...
|
| static IEnumerable< T > | Yield< T > (this T item) |
| | Wraps this object instance into an IEnumerable; consisting of a single item. More...
|
| |
| static async IAsyncEnumerable< T > | YieldAsync< T > (this T item) |
| | Wraps this object instance into an IAsyncEnumerable; consisting of a single item. More...
|
| |
Various extensions to succinctly produce IEnumerables out of single items.
◆ Yield< T >()
| static IEnumerable<T> Yield< T > |
( |
this T |
item | ) |
|
|
inlinestatic |
Wraps this object instance into an IEnumerable; consisting of a single item.
- Template Parameters
-
- Parameters
-
| item | The instance that will be wrapped. |
- Returns
- An IEnumerable consisting of a single item.
◆ YieldAsync< T >()
| static async IAsyncEnumerable<T> YieldAsync< T > |
( |
this T |
item | ) |
|
|
inlinestatic |
Wraps this object instance into an IAsyncEnumerable; consisting of a single item.
- Template Parameters
-
- Parameters
-
| item | The instance that will be wrapped. |
- Returns
- An IAsyncEnumerable consisting of a single item.
The documentation for this class was generated from the following file: