TypeConverter.StandardValuesCollection TypeConverter.StandardValuesCollection TypeConverter.StandardValuesCollection TypeConverter.StandardValuesCollection Class

定义

表示值的集合。Represents a collection of values.

public: ref class TypeConverter::StandardValuesCollection : System::Collections::ICollection
public class TypeConverter.StandardValuesCollection : System.Collections.ICollection
type TypeConverter.StandardValuesCollection = class
    interface ICollection
    interface IEnumerable
Public Class TypeConverter.StandardValuesCollection
Implements ICollection
继承
TypeConverter.StandardValuesCollectionTypeConverter.StandardValuesCollectionTypeConverter.StandardValuesCollectionTypeConverter.StandardValuesCollection
实现

注解

这是一个简单的集合类,它采用值数组并将其转换为集合。This is a simple collection class that takes an array of values and converts it to a collection. 它是轻型的,很适合在中GetStandardValues使用。It is lightweight and is well suited for use in GetStandardValues.

构造函数

TypeConverter.StandardValuesCollection(ICollection) TypeConverter.StandardValuesCollection(ICollection) TypeConverter.StandardValuesCollection(ICollection) TypeConverter.StandardValuesCollection(ICollection)

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

属性

Count Count Count Count

获取集合中的对象数。Gets the number of objects in the collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取指定索引号位置的对象。Gets the object at the specified index number.

方法

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

将该集合的内容复制到数组。Copies the contents of this collection to an array.

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

返回该集合的枚举数。Returns an enumerator for this 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)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

将该集合的内容复制到数组。Copies the contents of this collection to an array.

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

有关此成员的说明,请参见 CountFor a description of this member, see Count.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronizedFor a description of this member, see IsSynchronized.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

有关此成员的说明,请参见 SyncRootFor a description of this member, see SyncRoot.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

有关此成员的说明,请参见 GetEnumerator()For a description of this member, see GetEnumerator().

扩展方法

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.

适用于

另请参阅