ObjectExtensions.Enumerate<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
IEnumerable<T>
INumerable type with only 1 value
- Attributes