Share via


EqtBaseCollection<T> Class

Provides a base class for collections in this namespace.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.EqtBaseCollection<T>
    Microsoft.VisualStudio.TestTools.Common.DeploymentItemCollection
    Microsoft.VisualStudio.TestTools.Common.TestCategoryItemCollection

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class EqtBaseCollection(Of T) _
    Implements ICollection(Of T), IEnumerable(Of T),  _
    IEnumerable, ICloneable, IXmlTestStore
[SerializableAttribute]
public class EqtBaseCollection<T> : ICollection<T>, 
    IEnumerable<T>, IEnumerable, ICloneable, IXmlTestStore
[SerializableAttribute]
generic<typename T>
public ref class EqtBaseCollection : ICollection<T>, 
    IEnumerable<T>, IEnumerable, ICloneable, IXmlTestStore
[<SerializableAttribute>]
type EqtBaseCollection<'T> =  
    class 
        interface ICollection<'T>
        interface IEnumerable<'T>
        interface IEnumerable 
        interface ICloneable 
        interface IXmlTestStore 
    end
JScript does not support generic types or methods.

Type Parameters

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

The EqtBaseCollection<T> type exposes the following members.

Constructors

  Name Description
Protected method EqtBaseCollection<T>() Initializes a new instance of the EqtBaseCollection<T> class.
Protected method EqtBaseCollection<T>(IEqualityComparer) Initializes a new sortable instance of the EqtBaseCollection<T> class by using the provided comparer.
Protected method EqtBaseCollection<T>(EqtBaseCollection<T>) Initializes a new instance of the EqtBaseCollection<T> class by making a shallow copy of the provided EqtBaseCollection<T> object.

Top

Properties

  Name Description
Public property Count Gets the number of items in the collection.
Public property IsReadOnly Gets a value that indicates whether the collection is read-only.

Top

Methods

  Name Description
Public method Add Adds an item to the collection.
Public method Clear Clears all items from the collection.
Public method Clone Creates a copy of the collection.
Public method Contains Returns a value that indicates whether the provided item is already in the collection.
Public method CopyTo Copies all items in the collection to the provided array, starting with the provided index.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an IEnumerator object for iterating through the collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Load Loads the current object from the provided XML element by using the provided parameters.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the provided item from the collection, if the item exists.
Public method Save Saves the current object to the provided XML element using the provided parameters.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Protected field m_container Infrastructure. Returns the hash table that contains the collection.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<T>.GetEnumerator Returns a typed IEnumerator.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

DeploymentItemCollection