EnumerationExtensions
01 Syntax
Microsoft.VisualBasic.Linq.EnumerationExtensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| AsObjectEnumerator | 1 | 将一个Array对象转换为一个Object对象的枚举序列 |
| AsObjectEnumerator | 1 | 将一个Array对象转换为一个Object对象的枚举序列 |
| AsEnumerable | 1 | Returns the input typed as IEnumerable. |
| AsEnumerable | 1 |
03 Members
AsObjectEnumerator(
Array)将一个Array对象转换为一个Object对象的枚举序列
Remarks
使用这个拓展函数的原因是Array对象不能够产生对象的枚举序列用于Linq拓展函数
Parameters
| Name | Type | Description |
|---|---|---|
enums | Array | - |
AsObjectEnumerator``1(
Array)将一个Array对象转换为一个Object对象的枚举序列
Remarks
使用这个拓展函数的原因是Array对象不能够产生对象的枚举序列用于Linq拓展函数
Parameters
| Name | Type | Description |
|---|---|---|
enums | Array | - |
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
| Name | Description |
|---|---|
T | The type of the elements of source. |
Parameters
| Name | Type | Description |
|---|---|---|
enums | Enumeration(Of ``0) | The sequence to type as |
Returns
The input sequence typed as IEnumerable.
AsEnumerable(Enumeration(Of T))