samples/TodoApp/TodoApp.iOS/DataSources/TodoItemsTableSource.cs
/// <summary>
/// Inserts an item into the list.
/// </summary>
/// <param name="item">The item being inserted.</param>
/// <returns>The indexpath of the item inserted.</returns>
Inserts an item into the list.
Inserts an item into the list .
public NSIndexPath InsertItem(TodoItem item)
        {
            Items.Add(item);
            var index = Items.FindIndex(x => x.Id == item.Id);
            return NSIndexPath.FromItemSection(index, 0);
        }
public NSIndexPath InsertItem ( TodoItem item ) { Items . Add ( item ) ; var index = Items . FindIndex ( x => x . Id == item . Id ) ; return NSIndexPath . FromItemSection ( index , 0 ) ; }
Inserts an item into the list.
Inserts an item into the list .
The indexpath of the item inserted.
The indexpath of the item inserted .
item
TodoItem
The item being inserted.
The item being inserted .