InternalDataCollectionBase 类

定义

提供用于创建集合的基本功能。Provides the base functionality for creating collections.

public ref class InternalDataCollectionBase : System::Collections::ICollection
public class InternalDataCollectionBase : System.Collections.ICollection
type InternalDataCollectionBase = class
    interface ICollection
    interface IEnumerable
Public Class InternalDataCollectionBase
Implements ICollection
继承
InternalDataCollectionBase
派生
实现

注解

BaseCollection类及其成员不能用作独立组件,而是用作其他集合类从中派生标准功能的类。The BaseCollection class and its members are not intended for use as a stand-alone component, but as the class from which other collection classes derive standard functionality.

构造函数

InternalDataCollectionBase()

初始化 InternalDataCollectionBase 类的新实例。Initializes a new instance of the InternalDataCollectionBase class.

属性

Count

获取集合中的元素总数。Gets the total number of elements in a collection.

IsReadOnly

获取一个值,该值指示 InternalDataCollectionBase 是否为只读。Gets a value that indicates whether the InternalDataCollectionBase is read-only.

IsSynchronized

获取一个值,该值指示 InternalDataCollectionBase 是否已同步。Gets a value that indicates whether the InternalDataCollectionBase is synchronized.

List

获取作为列表的集合的项。Gets the items of the collection as a list.

SyncRoot

获取可用于同步集合的对象。Gets an object that can be used to synchronize the collection.

方法

CopyTo(Array, Int32)

将当前 InternalDataCollectionBase 的所有元素复制到一维 Array,从指定的 InternalDataCollectionBase 索引开始。Copies all the elements of the current InternalDataCollectionBase to a one-dimensional Array, starting at the specified InternalDataCollectionBase index.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

获取集合的 IEnumeratorGets an IEnumerator for the collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于