nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / EnumerationExtensions

EnumerationExtensions

Full name Microsoft.VisualBasic.Linq.EnumerationExtensions Assembly Microsoft.VisualBasic.Runtime Members 4

01 Syntax

Microsoft.VisualBasic.Linq.EnumerationExtensions

02 Methods

NameOverloadsSummary
AsObjectEnumerator 1 将一个Array对象转换为一个Object对象的枚举序列
AsObjectEnumerator 1 将一个Array对象转换为一个Object对象的枚举序列
AsEnumerable 1 Returns the input typed as IEnumerable.
AsEnumerable 1

03 Members

method AsObjectEnumerator #
AsObjectEnumerator(Array)

将一个Array对象转换为一个Object对象的枚举序列

Remarks

使用这个拓展函数的原因是Array对象不能够产生对象的枚举序列用于Linq拓展函数

Parameters
NameTypeDescription
enumsArray

-

method AsObjectEnumerator #
AsObjectEnumerator``1(Array)

将一个Array对象转换为一个Object对象的枚举序列

Remarks

使用这个拓展函数的原因是Array对象不能够产生对象的枚举序列用于Linq拓展函数

Parameters
NameTypeDescription
enumsArray

-

method AsEnumerable #
AsEnumerable``1(Enumeration(Of ``0))

Returns the input typed as IEnumerable.

Remarks

this iterator function is a kind of safe function: for the given data source is nothing, this function will returns a empty collection, null reference error will not happends in this iterator function.

Type Parameters
NameDescription
T

The type of the elements of source.

Parameters
NameTypeDescription
enumsEnumeration(Of ``0)

The sequence to type as IEnumerable

Returns

The input sequence typed as IEnumerable.

method AsEnumerable #
AsEnumerable(Enumeration(Of T))