C# Class Microsoft.Silverlight.Testing.Controls.CollectionHelper

A set of extension methods for manipulating collections.
Afficher le fichier Open project: garyjohnson/wpnest

Méthodes publiques

Méthode Description
Add ( this collection, object item ) : void

Adds an item to the collection.

CanInsert ( this collection, object item ) : bool

Returns a value Indicating whether an item can be inserted in a collection.

Count ( this collection ) : int

Gets the number of items in the collection.

Insert ( this collection, int index, object item ) : void

Inserts an item into the collection at an index.

IsReadOnly ( this collection ) : bool

Returns a value indicating whether a collection is read-only.

Remove ( this collection, object item ) : void

Removes an item from the collection.

Private Methods

Méthode Description
RemoveAt ( this collection, int index ) : void

Method Details

Add() public static méthode

Adds an item to the collection.
public static Add ( this collection, object item ) : void
collection this The collection.
item object The item to be added.
Résultat void

CanInsert() public static méthode

Returns a value Indicating whether an item can be inserted in a collection.
public static CanInsert ( this collection, object item ) : bool
collection this The collection.
item object The item to be inserted.
Résultat bool

Count() public static méthode

Gets the number of items in the collection.
public static Count ( this collection ) : int
collection this The collection.
Résultat int

Insert() public static méthode

Inserts an item into the collection at an index.
public static Insert ( this collection, int index, object item ) : void
collection this The collection.
index int The index at which to insert the item.
item object The item to be inserted.
Résultat void

IsReadOnly() public static méthode

Returns a value indicating whether a collection is read-only.
public static IsReadOnly ( this collection ) : bool
collection this The collection to examine.
Résultat bool

Remove() public static méthode

Removes an item from the collection.
public static Remove ( this collection, object item ) : void
collection this The collection.
item object The item to be removed.
Résultat void