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 的淺層複本 (Shallow Copy)。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.

適用於

另請參閱