JavaScriptExtensionsToEnumerable Method |
Supports managed iteration over an
iterable
script object.
Namespace: Microsoft.ClearScript.JavaScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax public static IEnumerable<Object> ToEnumerable(
this Object iterable
)
<ExtensionAttribute>
Public Shared Function ToEnumerable (
iterable As Object
) As IEnumerable(Of Object)
public:
[ExtensionAttribute]
static IEnumerable<Object^>^ ToEnumerable(
Object^ iterable
)
[<ExtensionAttribute>]
static member ToEnumerable :
iterable : Object -> IEnumerable<Object>
Parameters
- iterable Object
- An iterable script object (see remarks).
Return Value
IEnumerableObjectAn
IEnumerable<Object> implementation that supports managed iteration over
iterable.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks See Also