Share via


EqtBaseCollection<T> Class

Definition

Provides a base class for collections in this namespace.

generic <typename T>
public ref class EqtBaseCollection : ICloneable, Microsoft::VisualStudio::TestTools::Common::Xml::IXmlTestStore, System::Collections::Generic::ICollection<T>, System::Collections::Generic::IEnumerable<T>
[System.Serializable]
public class EqtBaseCollection<T> : ICloneable, Microsoft.VisualStudio.TestTools.Common.Xml.IXmlTestStore, System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>
[<System.Serializable>]
type EqtBaseCollection<'T> = class
    interface ICollection<'T>
    interface seq<'T>
    interface IEnumerable
    interface ICloneable
    interface IXmlTestStore
Public Class EqtBaseCollection(Of T)
Implements ICloneable, ICollection(Of T), IEnumerable(Of T), IXmlTestStore

Type Parameters

T

A Type that determines the type of object that the collection contains.

Inheritance
EqtBaseCollection<T>
Derived
Attributes
Implements

Constructors

EqtBaseCollection<T>()

Initializes a new instance of the EqtBaseCollection<T> class.

EqtBaseCollection<T>(EqtBaseCollection<T>)

Initializes a new instance of the EqtBaseCollection<T> class by making a shallow copy of the provided EqtBaseCollection<T> object.

EqtBaseCollection<T>(IEqualityComparer)

Initializes a new sortable instance of the EqtBaseCollection<T> class by using the provided comparer.

Fields

m_container

Returns the hash table that contains the collection.

Properties

Count

Gets the number of items in the collection.

IsReadOnly

Gets a value that indicates whether the collection is read-only.

Methods

Add(T)

Adds an item to the collection.

Clear()

Clears all items from the collection.

Clone()

Creates a copy of the collection.

Contains(T)

Returns a value that indicates whether the provided item is already in the collection.

CopyTo(T[], Int32)

Copies all items in the collection to the provided array, starting with the provided index.

GetEnumerator()

Returns an IEnumerator object for iterating through the collection.

Load(XmlElement, XmlTestStoreParameters)

Loads the current object from the provided XML element by using the provided parameters.

Remove(T)

Removes the provided item from the collection, if the item exists.

Save(XmlElement, XmlTestStoreParameters)

Saves the current object to the provided XML element using the provided parameters.

Explicit Interface Implementations

IEnumerable<T>.GetEnumerator()

Returns a typed IEnumerator.

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to