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

A set of extension methods for manipulating collections.
Mostrar archivo Open project: garyjohnson/wpnest

Public Methods

Method 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

Method Description
RemoveAt ( this collection, int index ) : void

Method Details

Add() public static method

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.
return void

CanInsert() public static method

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.
return bool

Count() public static method

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

Insert() public static method

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.
return void

IsReadOnly() public static method

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

Remove() public static method

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.
return void