Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.To browse the .NET Framework source code for this type, see the Reference Source. (加强版的List)
List
| Name | Description |
|---|---|
T | The type of elements in the list. |
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 4 | Initializes a new instance of the Microsoft VisualBasic language List class that is empty and has the default initial capacity. |
| PopAll | 1 | Pop all of the elements value in to array from the list object and then clear all of the List data. |
| op_Addition | 7 | Adds an object to the begin of the List. |
| op_Multiply | 1 | |
| op_Subtraction | 4 | 从输入的向量数组之中移除掉列表之中的指定元素,然后返回vector的剩余元素 |
| op_Explicit | 1 | 将这个列表对象隐式转换为向量数组 |
| op_Exponent | 1 | Find a item in the List |
| op_Inequality | 1 | Elements count not equals to a specific number? |
| op_GreaterThanOrEqual | 1 | Elements count is greater than or equals to a specific number? |
| op_LessThanOrEqual | 1 | Elements count is less than or equals to a specific number? |
| op_Equality | 2 | Enumerable.SequenceEqual()) |
| op_GreaterThan | 1 | List.Count of list > n |
| ReverseIterator | 1 | 反向的枚举出当前列表之中的所有元素 |
| ValuesEnumerator | 1 | Enums all of the elements in this collection list object by return a value reference type |
| Pop | 1 | Get the List.Last element value and then removes the last element. |
| op_Implicit | 1 | |
| op_LessThan | 1 | |
| op_RightShift | 1 | |
| Default | 1 | |
| Poll | 1 |
03 Properties
04 Members
IEnumerable(Of `0))Initializes a new instance of the List class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.
(这是一个安全的构造函数,假若输入的参数为空值,则只会创建一个空的列表,而不会抛出错误)
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of `0) | The collection whose elements are copied to the new list. |
`0())Initializes a new instance of the List class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.
| Name | Type | Description |
|---|---|---|
x | `0() | The collection whose elements are copied to the new list. |
Initializes a new instance of the Microsoft VisualBasic language List class that is empty and has the default initial capacity.
Int32)Initializes a new instance of the List class that is empty and has the specified initial capacity.
| Name | Type | Description |
|---|---|---|
capacity | Int32 | The number of elements that the new list can initially store. |
Pop all of the elements value in to array from the list object and then clear all of the List data.
`0)Adds an object to the end of the List.
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
x | `0 | The object to be added to the end of the List. The value can be null for reference types. |
Adds an object to the end of the List.
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
x | Value(Of `0) | The object to be added to the end of the List. The value can be null for reference types. |
`0, List(Of `0))Adds an object to the begin of the List.
| Name | Type | Description |
|---|---|---|
list | `0 | - |
x | List(Of `0) | The object to be added to the end of the List. The value can be null for reference types. |
IEnumerable(Of `0))Adds the elements of the specified collection to the end of the List.
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
vals | IEnumerable(Of `0) | - |
Append list2 to the end of list1
| Name | Type | Description |
|---|---|---|
list1 | List(Of `0) | - |
list2 | List(Of `0) | - |
IEnumerable(Of IEnumerable(Of `0)))Adds the elements of the specified collection to the end of the List.
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
vals | IEnumerable(Of IEnumerable(Of `0)) | - |
IEnumerable(Of `0), List(Of `0))Adds the elements of the specified collection to the begining of the list List. (output = vals contract list) (这个操作符并不会修改所输入的两个原始序列的内容)
| Name | Type | Description |
|---|---|---|
vals | IEnumerable(Of `0) | - |
list | List(Of `0) | - |
Int32)| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
n | Int32 | If parameter n equals to ZERO, then just |
`0)Removes the first occurrence of a specific object from the List.
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
x | `0 | The object to remove from the List. The value can be null for reference types. |
IEnumerable(Of `0))批量的从目标列表之中移除removes集合之中的对象
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
removes | IEnumerable(Of `0) | - |
Int32)List.RemoveAt()
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
index | Int32 | - |
`0(), List(Of `0))从输入的向量数组之中移除掉列表之中的指定元素,然后返回vector的剩余元素
| Name | Type | Description |
|---|---|---|
vector | `0() | - |
list | List(Of `0) | - |
将这个列表对象隐式转换为向量数组
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
Func(Of `0, Boolean))Find a item in the List
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
find | Func(Of `0, Boolean) | - |
Int32)Elements count not equals to a specific number?
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
count% | Int32 | - |
Int32)Elements count is greater than or equals to a specific number?
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
count% | Int32 | - |
Int32)Elements count is less than or equals to a specific number?
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
count% | Int32 | - |
Int32)Assert that the element counts of this list object is equals to a specifc number?
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
count% | Int32 | - |
IEnumerable(Of `0))Enumerable.SequenceEqual()
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
collection | IEnumerable(Of `0) | - |
Int32)List.Count of list > n
| Name | Type | Description |
|---|---|---|
list | List(Of `0) | - |
n% | Int32 | - |
反向的枚举出当前列表之中的所有元素
Enums all of the elements in this collection list object by return a value reference type
Boolean)Get the List.Last element value and then removes the last element.
The last elements in the collection List
The first elements in the collection List
Object)| Name | Type | Description |
|---|---|---|
args | Object | 同时支持boolean和integer |
This indexer property is using for the ODEs-system computing. (这个是为了ODEs计算模块所准备的一个数据接口)
| Name | Type | Description |
|---|---|---|
address | IAddress(Of Int32) | - |
Int32)Can accept negative number as the index value, negative value means [List.Count](cref:P:System.Collections.Generic.List%601.Count) - n, example as list(-1): means the last element in this list: list(list.Count -1)
| Name | Type | Description |
|---|---|---|
index% | Int32 | - |
Can accept negative number as the index value, negative value means [List.Count](cref:P:System.Collections.Generic.List%601.Count) - n, example as list(-1): means the last element in this list: list(list.Count -1)
| Name | Type | Description |
|---|---|---|
index | i32 | - |
String)Using a index vector expression to select/update many elements from this list collection.
| Name | Type | Description |
|---|---|---|
exp$ | String |
|
Predicate(Of `0))Select all of the elements from this list collection is any of them match the condition expression: where
| Name | Type | Description |
|---|---|---|
[where] | Predicate(Of `0) | - |
T)Int32)Int32)