InternalDataCollectionBase InternalDataCollectionBase InternalDataCollectionBase InternalDataCollectionBase Class


提供用于创建集合的基本功能。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


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() InternalDataCollectionBase() InternalDataCollectionBase()

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


Count Count Count Count

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

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

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

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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

List List List List

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

SyncRoot SyncRoot SyncRoot SyncRoot

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


CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) 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) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)


Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.