C# Класс Microsoft.Silverlight.Testing.Controls.CollectionHelper

A set of extension methods for manipulating collections.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
RemoveAt ( this collection, int index ) : void

Описание методов

Add() публичный статический Метод

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.
Результат void

CanInsert() публичный статический Метод

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.
Результат bool

Count() публичный статический Метод

Gets the number of items in the collection.
public static Count ( this collection ) : int
collection this The collection.
Результат int

Insert() публичный статический Метод

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.
Результат void

IsReadOnly() публичный статический Метод

Returns a value indicating whether a collection is read-only.
public static IsReadOnly ( this collection ) : bool
collection this The collection to examine.
Результат bool

Remove() публичный статический Метод

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.
Результат void