OptionalList<T> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
generic <typename T>
public ref class OptionalList : System::Collections::Generic::ICollection<T>, System::Collections::Generic::IEnumerable<T>, System::Collections::Generic::IList<T>, System::Collections::Generic::IReadOnlyCollection<T>, System::Collections::Generic::IReadOnlyList<T>
public class OptionalList<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.Generic.IReadOnlyCollection<T>, System.Collections.Generic.IReadOnlyList<T>
type OptionalList<'T> = class
interface IList<'T>
interface ICollection<'T>
interface seq<'T>
interface IEnumerable
interface IReadOnlyList<'T>
interface IReadOnlyCollection<'T>
Public Class OptionalList(Of T)
Implements ICollection(Of T), IEnumerable(Of T), IList(Of T), IReadOnlyCollection(Of T), IReadOnlyList(Of T)
类型参数
- T
- 继承
-
OptionalList<T>
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| OptionalList<T>() | |
| OptionalList<T>(OptionalProperty<IList<T>>) | |
| OptionalList<T>(OptionalProperty<IReadOnlyList<T>>) | |
属性
| 名称 | 说明 |
|---|---|
| Count | |
| IsReadOnly | |
| IsUndefined | |
| Item[Int32] | |
方法
| 名称 | 说明 |
|---|---|
| Add(T) | |
| Clear() | |
| Contains(T) | |
| CopyTo(T[], Int32) | |
| GetEnumerator() | |
| IndexOf(T) | |
| Insert(Int32, T) | |
| Remove(T) | |
| RemoveAt(Int32) | |
| Reset() | |
显式接口实现
| 名称 | 说明 |
|---|---|
| IEnumerable.GetEnumerator() |
返回循环访问集合的枚举器。 |