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