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