Partager via


LanguagePrimitives.GetEnumerable(Object) Method

Definition

Retrieves the IEnumerable of obj or null if the language does not consider obj to be IEnumerable.

public:
 static System::Collections::IEnumerable ^ GetEnumerable(System::Object ^ obj);
public static System.Collections.IEnumerable GetEnumerable (object obj);
static member GetEnumerable : obj -> System.Collections.IEnumerable
Public Shared Function GetEnumerable (obj As Object) As IEnumerable

Parameters

obj
Object

IEnumerable or IEnumerable-like object

Returns

Applies to