Share via


ObjectExtensions.Enumerate<T>(T) Method

Definition

Returns an enumeration that contains only the given value.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ Enumerate(T value);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Utilities.Internal.ObjectExtensions+<Enumerate>d__0<>))]
public static System.Collections.Generic.IEnumerable<T> Enumerate<T> (this T value);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Utilities.Internal.ObjectExtensions+<Enumerate>d__0<>))>]
static member Enumerate : 'T -> seq<'T>
<Extension()>
Public Iterator Function Enumerate(Of T) (value As T) As IEnumerable(Of T)

Type Parameters

T

type of value

Parameters

value
T

value itself

Returns

INumerable type with only 1 value

Attributes

Applies to