The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

SourceListEditConvenienceEx Class

Summary

Convenience methods for a source list.
Namespace
DynamicData
Base Types
  • object
graph BT Type-->Base0["object"] Type["SourceListEditConvenienceEx"] class Type type-node

Syntax

public static class SourceListEditConvenienceEx

Methods

Name Value Summary
Add<T>(ISourceList<T>, T) void
Adds the specified item to the source list.
static
AddRange<T>(ISourceList<T>, IEnumerable<T>) void
Adds the specified items to the source list.
static
Clear<T>(ISourceList<T>) void
Clears all items from the specified source list.
static
EditDiff<T>(ISourceList<T>, IEnumerable<T>, IEqualityComparer<T>?) void
Loads the list with the specified items in an optimised manner i.e. calculates the differences between the old and new items in the list and amends only the differences.
static
Insert<T>(ISourceList<T>, int, T) void
Adds the specified item to the source list.
static
InsertRange<T>(ISourceList<T>, IEnumerable<T>, int) void
Inserts the elements of a collection into the IExtendedList<T> at the specified index.
static
Move<T>(ISourceList<T>, int, int) void
Moves an item from the original to the destination index.
static
Remove<T>(ISourceList<T>, T) bool
Removes the specified item from the source list.
static
RemoveAt<T>(ISourceList<T>, int) void
Removes the element at the specified index.
static
RemoveMany<T>(ISourceList<T>, IEnumerable<T>) void
Removes the items from source in an optimised manner.
static
RemoveRange<T>(ISourceList<T>, int, int) void
Removes a range of elements from the ISourceList<T>.
static
Replace<T>(ISourceList<T>, T, T) void
Replaces the specified original with the destination object.
static
ReplaceAt<T>(ISourceList<T>, int, T) void
Replaces the item at the specified index with the new item.
static

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.