EnumerableExtensions.Yield<T>(T) Method
Converts an individual item into an IEnumerable<T> collection that contains this item. If the specified item is null, the method returns the collection that stores null.
Namespace: DevExpress.Maui.Mvvm
Assembly: DevExpress.Maui.Mvvm.dll
NuGet Package: DevExpress.Maui.Mvvm
Declaration
public static IEnumerable<T> Yield<T>(
this T singleElement
)
Parameters
| Name | Type | Description |
|---|---|---|
| singleElement | T | The source item. |
Type Parameters
| Name | Description |
|---|---|
| T | The item type. |
Returns
| Type | Description |
|---|---|
| IEnumerable<T> | A collection that contains the specified item. If the specified item is |
See Also