Show / Hide Table of Contents

Class DynamicCollectionExtensions

Inheritance
System.Object
DynamicCollectionExtensions
Namespace:InfinniPlatform.Dynamic
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public static class DynamicCollectionExtensions : object

Methods

| Improve this Doc View Source

AddItem(Object, Object)

Добавляет элемент в коллекцию.

Declaration
public static void AddItem(this object collection, object item)
Parameters
Type Name Description
System.Object collection

Исходная коллекция.

System.Object item

Элемент коллекции.

| Improve this Doc View Source

GetItem(Object, Int32)

Возвращает элемент коллекции.

Declaration
public static object GetItem(this object collection, int index)
Parameters
Type Name Description
System.Object collection

Исходная коллекция.

System.Int32 index

Индекс элемента.

Returns
Type Description
System.Object

Элемент коллекции.

| Improve this Doc View Source

InsertItem(Object, Int32, Object)

Добавляет элемент в коллекцию.

Declaration
public static void InsertItem(this object collection, int index, object item)
Parameters
Type Name Description
System.Object collection

Исходная коллекция.

System.Int32 index

Индекс элемента.

System.Object item

Элемент коллекции.

| Improve this Doc View Source

MoveItem(Object, Object, Int32)

Перемещает элемент в коллекции.

Declaration
public static void MoveItem(this object collection, object item, int delta)
Parameters
Type Name Description
System.Object collection

Исходная коллекция.

System.Object item

Элемент коллекции.

System.Int32 delta

Смещение индекса.

| Improve this Doc View Source

RemoveItem(Object, Object)

Удаляет элемент из коллекции.

Declaration
public static void RemoveItem(this object collection, object item)
Parameters
Type Name Description
System.Object collection

Исходная коллекция.

System.Object item

Элемент коллекции.

| Improve this Doc View Source

RemoveItemAt(Object, Int32)

Удаляет элемент из коллекции.

Declaration
public static void RemoveItemAt(this object collection, int index)
Parameters
Type Name Description
System.Object collection

Исходная коллекция.

System.Int32 index

Индекс элемента.

| Improve this Doc View Source

SetItem(Object, Int32, Object)

Устанавливает элемент коллекции.

Declaration
public static void SetItem(this object collection, int index, object item)
Parameters
Type Name Description
System.Object collection

Исходная коллекция.

System.Int32 index

Индекс элемента.

System.Object item

Элемент коллекции.

  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.