Volume Control
Application-specific hotkeys for Windows
VolumeControl.WPF.Collections.ObservableImmutableList< T > Class Template Reference
Inheritance diagram for VolumeControl.WPF.Collections.ObservableImmutableList< T >:
Collaboration diagram for VolumeControl.WPF.Collections.ObservableImmutableList< T >:

Public Member Functions

 ObservableImmutableList (IEnumerable< T > items)
 
 ObservableImmutableList (LockTypeEnum lockType)
 
 ObservableImmutableList (IEnumerable< T > items, LockTypeEnum lockType)
 
bool TryOperation (Func< ImmutableList< T >, ImmutableList< T >> operation)
 
bool DoOperation (Func< ImmutableList< T >, ImmutableList< T >> operation)
 
bool DoInsert (Func< ImmutableList< T >, KeyValuePair< int, T >> valueProvider)
 
bool DoAdd (Func< ImmutableList< T >, T > valueProvider)
 
bool DoAddRange (Func< ImmutableList< T >, IEnumerable< T >> valueProvider)
 
bool DoRemove (Func< ImmutableList< T >, T > valueProvider)
 
bool DoRemoveAt (Func< ImmutableList< T >, int > valueProvider)
 
bool DoSetItem (Func< ImmutableList< T >, KeyValuePair< int, T >> valueProvider)
 
bool TryInsert (Func< ImmutableList< T >, KeyValuePair< int, T >> valueProvider)
 
bool TryAdd (Func< ImmutableList< T >, T > valueProvider)
 
bool TryAddRange (Func< ImmutableList< T >, IEnumerable< T >> valueProvider)
 
bool TryRemove (Func< ImmutableList< T >, T > valueProvider)
 
bool TryRemoveAt (Func< ImmutableList< T >, int > valueProvider)
 
bool TrySetItem (Func< ImmutableList< T >, KeyValuePair< int, T >> valueProvider)
 
ImmutableList< T > ToImmutableList ()
 
IEnumerator< T > GetEnumerator ()
 
int Add (object? value)
 
bool Contains (object? value)
 
int IndexOf (object? value)
 
void Insert (int index, object? value)
 
void Remove (object? value)
 
void CopyTo (Array array, int index)
 
int IndexOf (T item)
 
bool Contains (T item)
 
void CopyTo (T[] array, int arrayIndex)
 
bool Remove (T item)
 
IImmutableList< T > Add (T value)
 
IImmutableList< T > AddRange (IEnumerable< T > items)
 
IImmutableList< T > Clear ()
 
int IndexOf (T item, int index, int count, IEqualityComparer< T >? equalityComparer)
 
IImmutableList< T > Insert (int index, T element)
 
IImmutableList< T > InsertRange (int index, IEnumerable< T > items)
 
int LastIndexOf (T item, int index, int count, IEqualityComparer< T >? equalityComparer)
 
IImmutableList< T > Remove (T value, IEqualityComparer< T >? equalityComparer)
 
IImmutableList< T > RemoveAll (Predicate< T > match)
 
IImmutableList< T > RemoveAt (int index)
 
IImmutableList< T > RemoveRange (int index, int count)
 
IImmutableList< T > RemoveRange (IEnumerable< T > items, IEqualityComparer< T >? equalityComparer)
 
IImmutableList< T > Replace (T oldValue, T newValue, IEqualityComparer< T >? equalityComparer)
 
IImmutableList< T > SetItem (int index, T value)
 
void ForEach (Action< T > action)
 
IImmutableList< T > Move (int oldIndex, int newIndex)
 Moves the item at the specified oldIndex to a new location specified by newIndex . More...
 
- Public Member Functions inherited from VolumeControl.WPF.Collections.ObservableCollectionObject
void DoEvents ()
 
void RaisePropertyChanged (string propertyName)
 

Properties

bool IsFixedSize [get]
 
bool IsSynchronized [get]
 
object SyncRoot [get]
 
this[int index] [get, set]
 
int Count [get]
 
bool IsReadOnly [get]
 
- Properties inherited from VolumeControl.WPF.Collections.ObservableCollectionObject
LockTypeEnum LockType [get]
 

Additional Inherited Members

- Public Types inherited from VolumeControl.WPF.Collections.ObservableCollectionObject
enum class  LockTypeEnum { SpinWait , Lock }
 
- Protected Member Functions inherited from VolumeControl.WPF.Collections.ObservableCollectionObject
 ObservableCollectionObject (LockTypeEnum lockType)
 
Dispatcher GetDispatcher ()
 
void WaitForCondition (Func< bool > condition)
 
void PumpWait_PumpUntil (Dispatcher dispatcher, Func< bool > condition)
 
bool TryLock ()
 
void Lock ()
 
void Unlock ()
 
virtual void OnCollectionChanged (NotifyCollectionChangedEventArgs args)
 
virtual void RaiseNotifyCollectionChanged ()
 
virtual void RaiseNotifyCollectionChanged (NotifyCollectionChangedEventArgs args)
 
- Events inherited from VolumeControl.WPF.Collections.ObservableCollectionObject
virtual ? NotifyCollectionChangedEventHandler CollectionChanged
 
PropertyChangedEventHandler? PropertyChanged
 

Detailed Description

Member Function Documentation

◆ Move()

IImmutableList<T> VolumeControl.WPF.Collections.ObservableImmutableList< T >.Move ( int  oldIndex,
int  newIndex 
)

Moves the item at the specified oldIndex to a new location specified by newIndex .

Parameters
oldIndexThe zero-based index specifying the location of the item to be moved.
newIndexThe zero-based index specifying the new location of the item.
Returns
This ObservableImmutableList<T> instance as a IImmutableList<T>.

Referenced by VolumeControl.WPF.Collections.ObservableImmutableListExtension_Sort.Sort< T >().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: