From 499175160efc3597f8817f5520dc14777b02e0de Mon Sep 17 00:00:00 2001 From: Laszlo Paillat Date: Tue, 18 Aug 2020 09:33:31 +0200 Subject: [PATCH] release 0.1.0 --- documentation/RELEASENOTE.md | 7 ++++ ...lections-Generic-ICollection-T-_T_bool).md | 9 +++-- ...lections-Generic-ICollection-T-_T_bool).md | 26 +++++++++++++ .../api/DefaultUnDo-CollectionUnDo-T-.md | 1 + ...ctionary-TKey_TValue-_TKey_TValue_bool).md | 6 +-- ...ctionary-TKey_TValue-_TKey_TValue_bool).md | 30 +++++++++++++++ ...DefaultUnDo-DictionaryUnDo-TKey_TValue-.md | 1 + ...o-GroupUnDo(string_DefaultUnDo-IUnDo--).md | 20 ++++++++++ ...efaultUnDo-GroupUnDo-TryGetSingle-T-(T).md | 20 ++++++++++ documentation/api/DefaultUnDo-GroupUnDo.md | 6 ++- ...nDoManager_System-Func-string_string-).md} | 20 ++++++---- .../api/DefaultUnDo-ICollectionExtension.md | 2 +- ...-TKey_TValue-_DefaultUnDo-IUnDoManager).md | 30 --------------- ...UnDoManager_System-Func-string_string-).md | 34 +++++++++++++++++ .../api/DefaultUnDo-IDictionaryExtension.md | 2 +- ...nDoManager_System-Func-string_string-).md} | 20 ++++++---- ...m-Collections-Generic-IList-T-_int_int).md | 2 + .../api/DefaultUnDo-IListExtension.md | 2 +- ...ge(DefaultUnDo-IUnDo_DefaultUnDo-IUnDo).md | 18 +++++++++ .../api/DefaultUnDo-IMergeableUnDo.md | 14 +++++++ ...neric-ISet-T-_DefaultUnDo-IUnDoManager).md | 26 ------------- ...UnDoManager_System-Func-string_string-).md | 30 +++++++++++++++ .../api/DefaultUnDo-ISetExtension.md | 2 +- .../api/DefaultUnDo-IUnDo-Description.md | 8 ++++ documentation/api/DefaultUnDo-IUnDo.md | 3 ++ ...ltUnDo-IUnDoManager-BeginGroup(string).md} | 9 ++++- ...faultUnDo-IUnDoManager-RedoDescriptions.md | 8 ++++ ...faultUnDo-IUnDoManager-UndoDescriptions.md | 8 ++++ documentation/api/DefaultUnDo-IUnDoManager.md | 4 +- ...er_System-Action_System-Action_string).md} | 16 +++++--- ...DoManager_System-Action-T-_T_T_string).md} | 26 +++++++------ ...ections-Generic-IList-T-_int_T_string).md} | 24 +++++++----- ...onary-TKey_TValue-_TKey_TValue_string).md} | 28 ++++++++------ ...tions-Generic-ICollection-T-_T_string).md} | 22 ++++++----- ...-Collections-Generic-ISet-T-_T_string).md} | 24 +++++++----- ...onary-TKey_TValue-_TKey_TValue_string).md} | 28 ++++++++------ ...ections-Generic-ICollection-T-_string).md} | 18 +++++---- ...ections-Generic-IList-T-_int_T_string).md} | 24 +++++++----- ...nDo-IUnDoManager_System-Action_string).md} | 14 ++++--- ...nDo-IUnDoManager_System-Action_string).md} | 14 ++++--- ...m-Collections-Generic-ICollection-T-_T).md | 30 --------------- ...ctions-Generic-ICollection-T-_T_string).md | 34 +++++++++++++++++ ...-Generic-IDictionary-TKey_TValue-_TKey).md | 34 ----------------- ...c-IDictionary-TKey_TValue-_TKey_string).md | 38 +++++++++++++++++++ ...llections-Generic-IList-T-_int_string).md} | 20 ++++++---- .../api/DefaultUnDo-IUnDoManagerExtension.md | 28 +++++++------- ...ollections-Generic-IList-T-_int_T_bool).md | 6 +-- ...ollections-Generic-IList-T-_int_T_bool).md | 30 +++++++++++++++ documentation/api/DefaultUnDo-ListUnDo-T-.md | 1 + ...nDo(string_System-Action_System-Action).md | 19 ++++++++++ documentation/api/DefaultUnDo-UnDo.md | 1 + ...ultUnDo-UnDoManager-BeginGroup(string).md} | 9 ++++- ...efaultUnDo-UnDoManager-RedoDescriptions.md | 8 ++++ ...efaultUnDo-UnDoManager-UnDoManager(int).md | 11 ++++++ ...efaultUnDo-UnDoManager-UndoDescriptions.md | 8 ++++ documentation/api/DefaultUnDo-UnDoManager.md | 5 ++- .../DefaultUnDo-ValueUnDo-T--MergeInterval.md | 9 +++++ ...-ValueUnDo(string_System-Action-T-_T_T).md | 26 +++++++++++++ documentation/api/DefaultUnDo-ValueUnDo-T-.md | 6 ++- documentation/api/DefaultUnDo.md | 1 + 60 files changed, 654 insertions(+), 276 deletions(-) create mode 100644 documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool).md create mode 100644 documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md create mode 100644 documentation/api/DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--).md create mode 100644 documentation/api/DefaultUnDo-GroupUnDo-TryGetSingle-T-(T).md rename documentation/api/{DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager).md => DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md} (50%) delete mode 100644 documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager).md create mode 100644 documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md rename documentation/api/{DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager).md => DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md} (50%) create mode 100644 documentation/api/DefaultUnDo-IMergeableUnDo-TryMerge(DefaultUnDo-IUnDo_DefaultUnDo-IUnDo).md create mode 100644 documentation/api/DefaultUnDo-IMergeableUnDo.md delete mode 100644 documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager).md create mode 100644 documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md create mode 100644 documentation/api/DefaultUnDo-IUnDo-Description.md rename documentation/api/{DefaultUnDo-IUnDoManager-BeginGroup().md => DefaultUnDo-IUnDoManager-BeginGroup(string).md} (69%) create mode 100644 documentation/api/DefaultUnDo-IUnDoManager-RedoDescriptions.md create mode 100644 documentation/api/DefaultUnDo-IUnDoManager-UndoDescriptions.md rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action).md => DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action_string).md} (68%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T).md => DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string).md} (50%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md => DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md} (54%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md => DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md} (50%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md => DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md} (52%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T).md => DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string).md} (51%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md => DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md} (52%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-).md => DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string).md} (54%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md => DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md} (56%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action).md => DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action_string).md} (67%) rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action).md => DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action_string).md} (67%) delete mode 100644 documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md create mode 100644 documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md delete mode 100644 documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey).md create mode 100644 documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string).md rename documentation/api/{DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int).md => DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string).md} (56%) create mode 100644 documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(string_System-Collections-Generic-IList-T-_int_T_bool).md create mode 100644 documentation/api/DefaultUnDo-UnDo-UnDo(string_System-Action_System-Action).md rename documentation/api/{DefaultUnDo-UnDoManager-BeginGroup().md => DefaultUnDo-UnDoManager-BeginGroup(string).md} (69%) create mode 100644 documentation/api/DefaultUnDo-UnDoManager-RedoDescriptions.md create mode 100644 documentation/api/DefaultUnDo-UnDoManager-UnDoManager(int).md create mode 100644 documentation/api/DefaultUnDo-UnDoManager-UndoDescriptions.md create mode 100644 documentation/api/DefaultUnDo-ValueUnDo-T--MergeInterval.md create mode 100644 documentation/api/DefaultUnDo-ValueUnDo-T--ValueUnDo(string_System-Action-T-_T_T).md diff --git a/documentation/RELEASENOTE.md b/documentation/RELEASENOTE.md index 78a1a23..36c4fab 100644 --- a/documentation/RELEASENOTE.md +++ b/documentation/RELEASENOTE.md @@ -1,3 +1,10 @@ +## DefaultUnDo 0.1.0 +added Description property on IUnDo +added maxCapacity on UnDoManager constructor +added IMergeableUnDo interface for mergeable operation + +[nuget package](https://www.nuget.org/packages/DefaultUnDo/0.1.0) + ## DefaultUnDo 0.0.1 first release diff --git a/documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(System-Collections-Generic-ICollection-T-_T_bool).md b/documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(System-Collections-Generic-ICollection-T-_T_bool).md index a5c3798..a7efa45 100644 --- a/documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(System-Collections-Generic-ICollection-T-_T_bool).md +++ b/documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(System-Collections-Generic-ICollection-T-_T_bool).md @@ -2,18 +2,21 @@ ## CollectionUnDo(System.Collections.Generic.ICollection<T>, T, bool) Constructor Initialise an instance of [CollectionUnDo<T>](./DefaultUnDo-CollectionUnDo-T-.md 'DefaultUnDo.CollectionUnDo<T>'). ```csharp -public CollectionUnDo(System.Collections.Generic.ICollection source, T element, bool isAdd); +public CollectionUnDo(System.Collections.Generic.ICollection source, T item, bool isAdd); ``` #### Parameters `source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](./DefaultUnDo-CollectionUnDo-T-.md#DefaultUnDo-CollectionUnDo-T--T 'DefaultUnDo.CollectionUnDo<T>.T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') The [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') on which to perform operation. - -`element` [T](./DefaultUnDo-CollectionUnDo-T-.md#DefaultUnDo-CollectionUnDo-T--T 'DefaultUnDo.CollectionUnDo<T>.T') + +`item` [T](./DefaultUnDo-CollectionUnDo-T-.md#DefaultUnDo-CollectionUnDo-T--T 'DefaultUnDo.CollectionUnDo<T>.T') The argument of the operation. `isAdd` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') true if the operation is an [System.Collections.Generic.ICollection<>.Add(`0)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1.Add#System_Collections_Generic_ICollection_1_Add__0_ 'System.Collections.Generic.ICollection`1.Add(`0)'), false for a [System.Collections.Generic.ICollection<>.Remove(`0)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1.Remove#System_Collections_Generic_ICollection_1_Remove__0_ 'System.Collections.Generic.ICollection`1.Remove(`0)'). +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[source](#DefaultUnDo-CollectionUnDo-T--CollectionUnDo(System-Collections-Generic-ICollection-T-_T_bool)-source 'DefaultUnDo.CollectionUnDo<T>.CollectionUnDo(System.Collections.Generic.ICollection<T>, T, bool).source') is null. diff --git a/documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool).md b/documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool).md new file mode 100644 index 0000000..e3b0d8e --- /dev/null +++ b/documentation/api/DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool).md @@ -0,0 +1,26 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[CollectionUnDo<T>](./DefaultUnDo-CollectionUnDo-T-.md 'DefaultUnDo.CollectionUnDo<T>') +## CollectionUnDo(string, System.Collections.Generic.ICollection<T>, T, bool) Constructor +Initialise an instance of [CollectionUnDo<T>](./DefaultUnDo-CollectionUnDo-T-.md 'DefaultUnDo.CollectionUnDo<T>'). +```csharp +public CollectionUnDo(string description, System.Collections.Generic.ICollection source, T item, bool isAdd); +``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of this [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') + + +`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](./DefaultUnDo-CollectionUnDo-T-.md#DefaultUnDo-CollectionUnDo-T--T 'DefaultUnDo.CollectionUnDo<T>.T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') +The [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') on which to perform operation. + + +`item` [T](./DefaultUnDo-CollectionUnDo-T-.md#DefaultUnDo-CollectionUnDo-T--T 'DefaultUnDo.CollectionUnDo<T>.T') +The argument of the operation. + + +`isAdd` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') +true if the operation is an [System.Collections.Generic.ICollection<>.Add(`0)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1.Add#System_Collections_Generic_ICollection_1_Add__0_ 'System.Collections.Generic.ICollection`1.Add(`0)'), false for a [System.Collections.Generic.ICollection<>.Remove(`0)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1.Remove#System_Collections_Generic_ICollection_1_Remove__0_ 'System.Collections.Generic.ICollection`1.Remove(`0)'). + +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[source](#DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool)-source 'DefaultUnDo.CollectionUnDo<T>.CollectionUnDo(string, System.Collections.Generic.ICollection<T>, T, bool).source') is null. diff --git a/documentation/api/DefaultUnDo-CollectionUnDo-T-.md b/documentation/api/DefaultUnDo-CollectionUnDo-T-.md index bfb0852..e3f9057 100644 --- a/documentation/api/DefaultUnDo-CollectionUnDo-T-.md +++ b/documentation/api/DefaultUnDo-CollectionUnDo-T-.md @@ -15,3 +15,4 @@ The type of element in the [System.Collections.Generic.ICollection<>](http ### Constructors - [CollectionUnDo(System.Collections.Generic.ICollection<T>, T, bool)](./DefaultUnDo-CollectionUnDo-T--CollectionUnDo(System-Collections-Generic-ICollection-T-_T_bool).md 'DefaultUnDo.CollectionUnDo<T>.CollectionUnDo(System.Collections.Generic.ICollection<T>, T, bool)') +- [CollectionUnDo(string, System.Collections.Generic.ICollection<T>, T, bool)](./DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool).md 'DefaultUnDo.CollectionUnDo<T>.CollectionUnDo(string, System.Collections.Generic.ICollection<T>, T, bool)') diff --git a/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md b/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md index 0b7d1bf..0d8154f 100644 --- a/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md +++ b/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md @@ -2,7 +2,7 @@ ## DictionaryUnDo(System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool) Constructor Initialise an instance of [DictionaryUnDo<TKey,TValue>](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md 'DefaultUnDo.DictionaryUnDo<TKey,TValue>'). ```csharp -public DictionaryUnDo(System.Collections.Generic.IDictionary source, TKey key, TValue element, bool isAdd); +public DictionaryUnDo(System.Collections.Generic.IDictionary source, TKey key, TValue value, bool isAdd); ``` #### Parameters @@ -13,8 +13,8 @@ The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/ `key` [TKey](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TKey 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TKey') The key of the operation. - -`element` [TValue](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TValue 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TValue') + +`value` [TValue](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TValue 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TValue') The value of the operation. diff --git a/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md b/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md new file mode 100644 index 0000000..bf5e8eb --- /dev/null +++ b/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md @@ -0,0 +1,30 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[DictionaryUnDo<TKey,TValue>](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md 'DefaultUnDo.DictionaryUnDo<TKey,TValue>') +## DictionaryUnDo(string, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool) Constructor +Initialise an instance of [DictionaryUnDo<TKey,TValue>](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md 'DefaultUnDo.DictionaryUnDo<TKey,TValue>'). +```csharp +public DictionaryUnDo(string description, System.Collections.Generic.IDictionary source, TKey key, TValue value, bool isAdd); +``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of this [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') + + +`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TKey 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TValue 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') +The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') on which to perform operation. + + +`key` [TKey](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TKey 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TKey') +The key of the operation. + + +`value` [TValue](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TValue 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TValue') +The value of the operation. + + +`isAdd` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') +true if the operation is [System.Collections.Generic.IDictionary<>.Add(`0,`1)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2.Add#System_Collections_Generic_IDictionary_2_Add__0,_1_ 'System.Collections.Generic.IDictionary`2.Add(`0,`1)'), false for [System.Collections.Generic.IDictionary<>.Remove(`0)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2.Remove#System_Collections_Generic_IDictionary_2_Remove__0_ 'System.Collections.Generic.IDictionary`2.Remove(`0)'). + +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[source](#DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool)-source 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.DictionaryUnDo(string, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool).source') or [key](#DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool)-key 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.DictionaryUnDo(string, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool).key') is null. diff --git a/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue-.md b/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue-.md index de26120..f6cb31d 100644 --- a/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue-.md +++ b/documentation/api/DefaultUnDo-DictionaryUnDo-TKey_TValue-.md @@ -19,3 +19,4 @@ Type of the values. ### Constructors - [DictionaryUnDo(System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool)](./DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.DictionaryUnDo(System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool)') +- [DictionaryUnDo(string, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool)](./DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.DictionaryUnDo(string, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, bool)') diff --git a/documentation/api/DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--).md b/documentation/api/DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--).md new file mode 100644 index 0000000..8f470f1 --- /dev/null +++ b/documentation/api/DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--).md @@ -0,0 +1,20 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[GroupUnDo](./DefaultUnDo-GroupUnDo.md 'DefaultUnDo.GroupUnDo') +## GroupUnDo(string, DefaultUnDo.IUnDo[]) Constructor +Initialise an instance of [GroupUnDo](./DefaultUnDo-GroupUnDo.md 'DefaultUnDo.GroupUnDo'). +```csharp +public GroupUnDo(string description, params DefaultUnDo.IUnDo[] commands); +``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of this [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') + + +`commands` [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') +The sequence of [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') contained by the instance. + +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[commands](#DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--)-commands 'DefaultUnDo.GroupUnDo.GroupUnDo(string, DefaultUnDo.IUnDo[]).commands') is null. +[System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') +[commands](#DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--)-commands 'DefaultUnDo.GroupUnDo.GroupUnDo(string, DefaultUnDo.IUnDo[]).commands') contains null elements. diff --git a/documentation/api/DefaultUnDo-GroupUnDo-TryGetSingle-T-(T).md b/documentation/api/DefaultUnDo-GroupUnDo-TryGetSingle-T-(T).md new file mode 100644 index 0000000..e410131 --- /dev/null +++ b/documentation/api/DefaultUnDo-GroupUnDo-TryGetSingle-T-(T).md @@ -0,0 +1,20 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[GroupUnDo](./DefaultUnDo-GroupUnDo.md 'DefaultUnDo.GroupUnDo') +## GroupUnDo.TryGetSingle<T>(T) Method +Gets the single [T](#DefaultUnDo-GroupUnDo-TryGetSingle-T-(T)-T 'DefaultUnDo.GroupUnDo.TryGetSingle<T>(T).T') of this instance. +```csharp +public bool TryGetSingle(out T command); +``` +#### Type parameters + +`T` + + +#### Parameters + +`command` [T](#DefaultUnDo-GroupUnDo-TryGetSingle-T-(T)-T 'DefaultUnDo.GroupUnDo.TryGetSingle<T>(T).T') +When this method returns, the single [T](#DefaultUnDo-GroupUnDo-TryGetSingle-T-(T)-T 'DefaultUnDo.GroupUnDo.TryGetSingle<T>(T).T') of this instance, if it was its only command; otherwise, the default value for the type [T](#DefaultUnDo-GroupUnDo-TryGetSingle-T-(T)-T 'DefaultUnDo.GroupUnDo.TryGetSingle<T>(T).T'). + This parameter is passed uninitialized. + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') +true if the current instance contains exactly one [T](#DefaultUnDo-GroupUnDo-TryGetSingle-T-(T)-T 'DefaultUnDo.GroupUnDo.TryGetSingle<T>(T).T'); otherwise false. diff --git a/documentation/api/DefaultUnDo-GroupUnDo.md b/documentation/api/DefaultUnDo-GroupUnDo.md index 31ad4a3..38192f8 100644 --- a/documentation/api/DefaultUnDo-GroupUnDo.md +++ b/documentation/api/DefaultUnDo-GroupUnDo.md @@ -3,10 +3,14 @@ Provides an implementation of the [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') interface for a group of operations. ```csharp public sealed class GroupUnDo : +IMergeableUnDo, IUnDo ``` Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 GroupUnDo -Implements [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') +Implements [IMergeableUnDo](./DefaultUnDo-IMergeableUnDo.md 'DefaultUnDo.IMergeableUnDo'), [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') ### Constructors - [GroupUnDo(DefaultUnDo.IUnDo[])](./DefaultUnDo-GroupUnDo-GroupUnDo(DefaultUnDo-IUnDo--).md 'DefaultUnDo.GroupUnDo.GroupUnDo(DefaultUnDo.IUnDo[])') +- [GroupUnDo(string, DefaultUnDo.IUnDo[])](./DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--).md 'DefaultUnDo.GroupUnDo.GroupUnDo(string, DefaultUnDo.IUnDo[])') +### Methods +- [TryGetSingle<T>(T)](./DefaultUnDo-GroupUnDo-TryGetSingle-T-(T).md 'DefaultUnDo.GroupUnDo.TryGetSingle<T>(T)') diff --git a/documentation/api/DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager).md b/documentation/api/DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md similarity index 50% rename from documentation/api/DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager).md rename to documentation/api/DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md index 4d61c40..4491554 100644 --- a/documentation/api/DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager).md +++ b/documentation/api/DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md @@ -1,26 +1,30 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[ICollectionExtension](./DefaultUnDo-ICollectionExtension.md 'DefaultUnDo.ICollectionExtension') -## ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager) Method +## ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>) Method Wraps an [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') to an UnDo collection linked to an [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') to automatically generate [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operations. ```csharp -public static System.Collections.Generic.ICollection AsUnDo(this System.Collections.Generic.ICollection source, DefaultUnDo.IUnDoManager manager); +public static System.Collections.Generic.ICollection AsUnDo(this System.Collections.Generic.ICollection source, DefaultUnDo.IUnDoManager manager, System.Func descriptionFactory=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). #### Parameters - -`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager)-T 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') + +`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-T 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') The [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). + +`descriptionFactory` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') +Factory used to create the description of the generated [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo'), the name of the method called is passed as a parameter. + #### Returns -[System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager)-T 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') +[System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-T 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') A wrapped [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[source](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager)-source 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager).source') or [manager](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager)-manager 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager).manager') is null. +[source](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-source 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).source') or [manager](#DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-manager 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).manager') is null. diff --git a/documentation/api/DefaultUnDo-ICollectionExtension.md b/documentation/api/DefaultUnDo-ICollectionExtension.md index 91f834a..e6888df 100644 --- a/documentation/api/DefaultUnDo-ICollectionExtension.md +++ b/documentation/api/DefaultUnDo-ICollectionExtension.md @@ -6,4 +6,4 @@ public static class ICollectionExtension ``` Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ICollectionExtension ### Methods -- [AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager)](./DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager).md 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager)') +- [AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>)](./DefaultUnDo-ICollectionExtension-AsUnDo-T-(System-Collections-Generic-ICollection-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md 'DefaultUnDo.ICollectionExtension.AsUnDo<T>(System.Collections.Generic.ICollection<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>)') diff --git a/documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager).md b/documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager).md deleted file mode 100644 index 51e7244..0000000 --- a/documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager).md +++ /dev/null @@ -1,30 +0,0 @@ -### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IDictionaryExtension](./DefaultUnDo-IDictionaryExtension.md 'DefaultUnDo.IDictionaryExtension') -## IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager) Method -Wraps an [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') to an UnDo dictionary linked to an [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') to automatically generate [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operations. -```csharp -public static System.Collections.Generic.IDictionary AsUnDo(this System.Collections.Generic.IDictionary source, DefaultUnDo.IUnDoManager manager); -``` -#### Type parameters - -`TKey` -The type of keys. - - -`TValue` -The type of values. - -#### Parameters - -`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager)-TKey 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager)-TValue 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') -The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). - - -`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') -The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -#### Returns -[System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager)-TKey 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager)-TValue 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') -A wrapped [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). -#### Exceptions -[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[source](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager)-source 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager).source') or [manager](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager)-manager 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager).manager') is null. diff --git a/documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md b/documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md new file mode 100644 index 0000000..5ed9df3 --- /dev/null +++ b/documentation/api/DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md @@ -0,0 +1,34 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IDictionaryExtension](./DefaultUnDo-IDictionaryExtension.md 'DefaultUnDo.IDictionaryExtension') +## IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>) Method +Wraps an [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') to an UnDo dictionary linked to an [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') to automatically generate [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operations. +```csharp +public static System.Collections.Generic.IDictionary AsUnDo(this System.Collections.Generic.IDictionary source, DefaultUnDo.IUnDoManager manager, System.Func descriptionFactory=null); +``` +#### Type parameters + +`TKey` +The type of keys. + + +`TValue` +The type of values. + +#### Parameters + +`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-TKey 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-TValue 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') +The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). + + +`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') +The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). + + +`descriptionFactory` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') +Factory used to create the description of the generated [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo'), the name of the method called is passed as a parameter. + +#### Returns +[System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-TKey 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-TValue 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') +A wrapped [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[source](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-source 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>).source') or [manager](#DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-manager 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>).manager') is null. diff --git a/documentation/api/DefaultUnDo-IDictionaryExtension.md b/documentation/api/DefaultUnDo-IDictionaryExtension.md index a3d8452..b4be93c 100644 --- a/documentation/api/DefaultUnDo-IDictionaryExtension.md +++ b/documentation/api/DefaultUnDo-IDictionaryExtension.md @@ -6,4 +6,4 @@ public static class IDictionaryExtension ``` Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 IDictionaryExtension ### Methods -- [AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager)](./DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager).md 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager)') +- [AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>)](./DefaultUnDo-IDictionaryExtension-AsUnDo-TKey_TValue-(System-Collections-Generic-IDictionary-TKey_TValue-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md 'DefaultUnDo.IDictionaryExtension.AsUnDo<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue>, DefaultUnDo.IUnDoManager, System.Func<string,string>)') diff --git a/documentation/api/DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager).md b/documentation/api/DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md similarity index 50% rename from documentation/api/DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager).md rename to documentation/api/DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md index ba2ce54..71f32e7 100644 --- a/documentation/api/DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager).md +++ b/documentation/api/DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md @@ -1,26 +1,30 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IListExtension](./DefaultUnDo-IListExtension.md 'DefaultUnDo.IListExtension') -## IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager) Method +## IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>) Method Wraps an [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') to an UnDo list linked to an [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') to automatically generate [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operations. ```csharp -public static System.Collections.Generic.IList AsUnDo(this System.Collections.Generic.IList source, DefaultUnDo.IUnDoManager manager); +public static System.Collections.Generic.IList AsUnDo(this System.Collections.Generic.IList source, DefaultUnDo.IUnDoManager manager, System.Func descriptionFactory=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). #### Parameters - -`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager)-T 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') + +`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-T 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') The [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). + +`descriptionFactory` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') +Factory used to create the description of the generated [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo'), the name of the method called is passed as a parameter. + #### Returns -[System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager)-T 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') +[System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-T 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') A wrapped [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[source](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager)-source 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager).source') or [manager](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager)-manager 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager).manager') is null. +[source](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-source 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).source') or [manager](#DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-manager 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).manager') is null. diff --git a/documentation/api/DefaultUnDo-IListExtension-Move-T-(System-Collections-Generic-IList-T-_int_int).md b/documentation/api/DefaultUnDo-IListExtension-Move-T-(System-Collections-Generic-IList-T-_int_int).md index 87ce5ef..4c0cc72 100644 --- a/documentation/api/DefaultUnDo-IListExtension-Move-T-(System-Collections-Generic-IList-T-_int_int).md +++ b/documentation/api/DefaultUnDo-IListExtension-Move-T-(System-Collections-Generic-IList-T-_int_int).md @@ -1,6 +1,8 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IListExtension](./DefaultUnDo-IListExtension.md 'DefaultUnDo.IListExtension') ## IListExtension.Move<T>(System.Collections.Generic.IList<T>, int, int) Method Moves the item at the specified index to a new location in the collection. +If [source](#DefaultUnDo-IListExtension-Move-T-(System-Collections-Generic-IList-T-_int_int)-source 'DefaultUnDo.IListExtension.Move<T>(System.Collections.Generic.IList<T>, int, int).source') is an UnDo list and its inner source an [System.Collections.ObjectModel.ObservableCollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.ObjectModel.ObservableCollection-1 'System.Collections.ObjectModel.ObservableCollection`1'), it will use the [System.Collections.ObjectModel.ObservableCollection<>.Move(System.Int32,System.Int32)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.ObjectModel.ObservableCollection-1.Move#System_Collections_ObjectModel_ObservableCollection_1_Move_System_Int32,System_Int32_ 'System.Collections.ObjectModel.ObservableCollection`1.Move(System.Int32,System.Int32)') method; +else it will do an [System.Collections.Generic.IList<>.RemoveAt(System.Int32)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1.RemoveAt#System_Collections_Generic_IList_1_RemoveAt_System_Int32_ 'System.Collections.Generic.IList`1.RemoveAt(System.Int32)') and [System.Collections.Generic.IList<>.Insert(System.Int32,`0)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1.Insert#System_Collections_Generic_IList_1_Insert_System_Int32,_0_ 'System.Collections.Generic.IList`1.Insert(System.Int32,`0)'). ```csharp public static void Move(this System.Collections.Generic.IList source, int oldIndex, int newIndex); ``` diff --git a/documentation/api/DefaultUnDo-IListExtension.md b/documentation/api/DefaultUnDo-IListExtension.md index 92fbc27..6015e3a 100644 --- a/documentation/api/DefaultUnDo-IListExtension.md +++ b/documentation/api/DefaultUnDo-IListExtension.md @@ -6,5 +6,5 @@ public static class IListExtension ``` Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 IListExtension ### Methods -- [AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager)](./DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager).md 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager)') +- [AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>)](./DefaultUnDo-IListExtension-AsUnDo-T-(System-Collections-Generic-IList-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md 'DefaultUnDo.IListExtension.AsUnDo<T>(System.Collections.Generic.IList<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>)') - [Move<T>(System.Collections.Generic.IList<T>, int, int)](./DefaultUnDo-IListExtension-Move-T-(System-Collections-Generic-IList-T-_int_int).md 'DefaultUnDo.IListExtension.Move<T>(System.Collections.Generic.IList<T>, int, int)') diff --git a/documentation/api/DefaultUnDo-IMergeableUnDo-TryMerge(DefaultUnDo-IUnDo_DefaultUnDo-IUnDo).md b/documentation/api/DefaultUnDo-IMergeableUnDo-TryMerge(DefaultUnDo-IUnDo_DefaultUnDo-IUnDo).md new file mode 100644 index 0000000..20e50bf --- /dev/null +++ b/documentation/api/DefaultUnDo-IMergeableUnDo-TryMerge(DefaultUnDo-IUnDo_DefaultUnDo-IUnDo).md @@ -0,0 +1,18 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IMergeableUnDo](./DefaultUnDo-IMergeableUnDo.md 'DefaultUnDo.IMergeableUnDo') +## IMergeableUnDo.TryMerge(DefaultUnDo.IUnDo, DefaultUnDo.IUnDo) Method +Merges the current instance with the specified [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo'). +```csharp +bool TryMerge(DefaultUnDo.IUnDo other, out DefaultUnDo.IUnDo mergedCommand); +``` +#### Parameters + +`other` [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') +The other [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') instance the current one should try to merge with. + + +`mergedCommand` [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') +The resulting merged [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') instance if the operation was successful. + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') +true if the merge was successful; otherwise false. diff --git a/documentation/api/DefaultUnDo-IMergeableUnDo.md b/documentation/api/DefaultUnDo-IMergeableUnDo.md new file mode 100644 index 0000000..9c16e5e --- /dev/null +++ b/documentation/api/DefaultUnDo-IMergeableUnDo.md @@ -0,0 +1,14 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo') +## IMergeableUnDo Interface +Provides a method to try to merge two [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') instances into a single one. +```csharp +public interface IMergeableUnDo : +IUnDo +``` +Derived +↳ [GroupUnDo](./DefaultUnDo-GroupUnDo.md 'DefaultUnDo.GroupUnDo') +↳ [ValueUnDo<T>](./DefaultUnDo-ValueUnDo-T-.md 'DefaultUnDo.ValueUnDo<T>') + +Implements [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') +### Methods +- [TryMerge(DefaultUnDo.IUnDo, DefaultUnDo.IUnDo)](./DefaultUnDo-IMergeableUnDo-TryMerge(DefaultUnDo-IUnDo_DefaultUnDo-IUnDo).md 'DefaultUnDo.IMergeableUnDo.TryMerge(DefaultUnDo.IUnDo, DefaultUnDo.IUnDo)') diff --git a/documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager).md b/documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager).md deleted file mode 100644 index 190ea09..0000000 --- a/documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager).md +++ /dev/null @@ -1,26 +0,0 @@ -### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[ISetExtension](./DefaultUnDo-ISetExtension.md 'DefaultUnDo.ISetExtension') -## ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager) Method -Wraps an [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') to an UnDo set linked to an [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') to automatically generate [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operations. -```csharp -public static System.Collections.Generic.ISet AsUnDo(this System.Collections.Generic.ISet source, DefaultUnDo.IUnDoManager manager); -``` -#### Type parameters - -`T` -The type of element in the [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). - -#### Parameters - -`source` [System.Collections.Generic.ISet<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1')[T](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager)-T 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') -The [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). - - -`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') -The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -#### Returns -[System.Collections.Generic.ISet<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1')[T](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager)-T 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') -A wrapped [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). -#### Exceptions -[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[source](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager)-source 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager).source') or [manager](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager)-manager 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager).manager') is null. diff --git a/documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md b/documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md new file mode 100644 index 0000000..57b5184 --- /dev/null +++ b/documentation/api/DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md @@ -0,0 +1,30 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[ISetExtension](./DefaultUnDo-ISetExtension.md 'DefaultUnDo.ISetExtension') +## ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>) Method +Wraps an [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') to an UnDo set linked to an [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') to automatically generate [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operations. +```csharp +public static System.Collections.Generic.ISet AsUnDo(this System.Collections.Generic.ISet source, DefaultUnDo.IUnDoManager manager, System.Func descriptionFactory=null); +``` +#### Type parameters + +`T` +The type of element in the [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). + +#### Parameters + +`source` [System.Collections.Generic.ISet<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1')[T](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-T 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') +The [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). + + +`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') +The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). + + +`descriptionFactory` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') +Factory used to create the description of the generated [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo'), the name of the method called is passed as a parameter. + +#### Returns +[System.Collections.Generic.ISet<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1')[T](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-T 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') +A wrapped [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[source](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-source 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).source') or [manager](#DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-)-manager 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>).manager') is null. diff --git a/documentation/api/DefaultUnDo-ISetExtension.md b/documentation/api/DefaultUnDo-ISetExtension.md index 8368ada..c8c8a69 100644 --- a/documentation/api/DefaultUnDo-ISetExtension.md +++ b/documentation/api/DefaultUnDo-ISetExtension.md @@ -6,4 +6,4 @@ public static class ISetExtension ``` Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ISetExtension ### Methods -- [AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager)](./DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager).md 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager)') +- [AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>)](./DefaultUnDo-ISetExtension-AsUnDo-T-(System-Collections-Generic-ISet-T-_DefaultUnDo-IUnDoManager_System-Func-string_string-).md 'DefaultUnDo.ISetExtension.AsUnDo<T>(System.Collections.Generic.ISet<T>, DefaultUnDo.IUnDoManager, System.Func<string,string>)') diff --git a/documentation/api/DefaultUnDo-IUnDo-Description.md b/documentation/api/DefaultUnDo-IUnDo-Description.md new file mode 100644 index 0000000..4f73132 --- /dev/null +++ b/documentation/api/DefaultUnDo-IUnDo-Description.md @@ -0,0 +1,8 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') +## IUnDo.Description Property +Gets a description of what this [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') perform. +```csharp +string Description { get; } +``` +#### Property Value +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') diff --git a/documentation/api/DefaultUnDo-IUnDo.md b/documentation/api/DefaultUnDo-IUnDo.md index 33f13ab..64e8b72 100644 --- a/documentation/api/DefaultUnDo-IUnDo.md +++ b/documentation/api/DefaultUnDo-IUnDo.md @@ -8,9 +8,12 @@ Derived ↳ [CollectionUnDo<T>](./DefaultUnDo-CollectionUnDo-T-.md 'DefaultUnDo.CollectionUnDo<T>') ↳ [DictionaryUnDo<TKey,TValue>](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md 'DefaultUnDo.DictionaryUnDo<TKey,TValue>') ↳ [GroupUnDo](./DefaultUnDo-GroupUnDo.md 'DefaultUnDo.GroupUnDo') +↳ [IMergeableUnDo](./DefaultUnDo-IMergeableUnDo.md 'DefaultUnDo.IMergeableUnDo') ↳ [ListUnDo<T>](./DefaultUnDo-ListUnDo-T-.md 'DefaultUnDo.ListUnDo<T>') ↳ [UnDo](./DefaultUnDo-UnDo.md 'DefaultUnDo.UnDo') ↳ [ValueUnDo<T>](./DefaultUnDo-ValueUnDo-T-.md 'DefaultUnDo.ValueUnDo<T>') +### Properties +- [Description](./DefaultUnDo-IUnDo-Description.md 'DefaultUnDo.IUnDo.Description') ### Methods - [Do()](./DefaultUnDo-IUnDo-Do().md 'DefaultUnDo.IUnDo.Do()') - [Undo()](./DefaultUnDo-IUnDo-Undo().md 'DefaultUnDo.IUnDo.Undo()') diff --git a/documentation/api/DefaultUnDo-IUnDoManager-BeginGroup().md b/documentation/api/DefaultUnDo-IUnDoManager-BeginGroup(string).md similarity index 69% rename from documentation/api/DefaultUnDo-IUnDoManager-BeginGroup().md rename to documentation/api/DefaultUnDo-IUnDoManager-BeginGroup(string).md index 5d52d63..7226b7b 100644 --- a/documentation/api/DefaultUnDo-IUnDoManager-BeginGroup().md +++ b/documentation/api/DefaultUnDo-IUnDoManager-BeginGroup(string).md @@ -1,10 +1,15 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') -## IUnDoManager.BeginGroup() Method +## IUnDoManager.BeginGroup(string) Method Starts a group of operation and return an [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') to stop the group. If multiple calls to this method are made, the group will be stoped once each [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') returned are disposed. ```csharp -System.IDisposable BeginGroup(); +System.IDisposable BeginGroup(string description=null); ``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the group operation. + #### Returns [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') An [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') to stop the group operation. diff --git a/documentation/api/DefaultUnDo-IUnDoManager-RedoDescriptions.md b/documentation/api/DefaultUnDo-IUnDoManager-RedoDescriptions.md new file mode 100644 index 0000000..d31522c --- /dev/null +++ b/documentation/api/DefaultUnDo-IUnDoManager-RedoDescriptions.md @@ -0,0 +1,8 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') +## IUnDoManager.RedoDescriptions Property +Gets the descriptions in order of all the [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') which can be redone. +```csharp +System.Collections.Generic.IEnumerable RedoDescriptions { get; } +``` +#### Property Value +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') diff --git a/documentation/api/DefaultUnDo-IUnDoManager-UndoDescriptions.md b/documentation/api/DefaultUnDo-IUnDoManager-UndoDescriptions.md new file mode 100644 index 0000000..0c445d7 --- /dev/null +++ b/documentation/api/DefaultUnDo-IUnDoManager-UndoDescriptions.md @@ -0,0 +1,8 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') +## IUnDoManager.UndoDescriptions Property +Gets the descriptions in order of all the [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') which can be undone. +```csharp +System.Collections.Generic.IEnumerable UndoDescriptions { get; } +``` +#### Property Value +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') diff --git a/documentation/api/DefaultUnDo-IUnDoManager.md b/documentation/api/DefaultUnDo-IUnDoManager.md index 38793a0..b76bc05 100644 --- a/documentation/api/DefaultUnDo-IUnDoManager.md +++ b/documentation/api/DefaultUnDo-IUnDoManager.md @@ -12,9 +12,11 @@ Implements [System.ComponentModel.INotifyPropertyChanged](https://docs.microsoft ### Properties - [CanRedo](./DefaultUnDo-IUnDoManager-CanRedo.md 'DefaultUnDo.IUnDoManager.CanRedo') - [CanUndo](./DefaultUnDo-IUnDoManager-CanUndo.md 'DefaultUnDo.IUnDoManager.CanUndo') +- [RedoDescriptions](./DefaultUnDo-IUnDoManager-RedoDescriptions.md 'DefaultUnDo.IUnDoManager.RedoDescriptions') +- [UndoDescriptions](./DefaultUnDo-IUnDoManager-UndoDescriptions.md 'DefaultUnDo.IUnDoManager.UndoDescriptions') - [Version](./DefaultUnDo-IUnDoManager-Version.md 'DefaultUnDo.IUnDoManager.Version') ### Methods -- [BeginGroup()](./DefaultUnDo-IUnDoManager-BeginGroup().md 'DefaultUnDo.IUnDoManager.BeginGroup()') +- [BeginGroup(string)](./DefaultUnDo-IUnDoManager-BeginGroup(string).md 'DefaultUnDo.IUnDoManager.BeginGroup(string)') - [Clear()](./DefaultUnDo-IUnDoManager-Clear().md 'DefaultUnDo.IUnDoManager.Clear()') - [Do(DefaultUnDo.IUnDo)](./DefaultUnDo-IUnDoManager-Do(DefaultUnDo-IUnDo).md 'DefaultUnDo.IUnDoManager.Do(DefaultUnDo.IUnDo)') - [Redo()](./DefaultUnDo-IUnDoManager-Redo().md 'DefaultUnDo.IUnDoManager.Redo()') diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action_string).md similarity index 68% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action_string).md index 7c4227a..c874f3a 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action_string).md @@ -1,22 +1,26 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.Do(DefaultUnDo.IUnDoManager, System.Action, System.Action) Method +## IUnDoManagerExtension.Do(DefaultUnDo.IUnDoManager, System.Action, System.Action, string) Method Does a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation on the manager with the specified doAction and undoAction. ```csharp -public static void Do(this DefaultUnDo.IUnDoManager manager, System.Action doAction, System.Action undoAction); +public static void Do(this DefaultUnDo.IUnDoManager manager, System.Action doAction, System.Action undoAction, string description=null); ``` #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - + `doAction` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') The [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') performed by [Do()](./DefaultUnDo-IUnDo-Do().md 'DefaultUnDo.IUnDo.Do()'). - + `undoAction` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') The [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') performed by the [Undo()](./DefaultUnDo-IUnDo-Undo().md 'DefaultUnDo.IUnDo.Undo()'). + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action)-manager 'DefaultUnDo.IUnDoManagerExtension.Do(DefaultUnDo.IUnDoManager, System.Action, System.Action).manager') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action_string)-manager 'DefaultUnDo.IUnDoManagerExtension.Do(DefaultUnDo.IUnDoManager, System.Action, System.Action, string).manager') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string).md similarity index 50% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string).md index 33a693a..591caf5 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string).md @@ -1,31 +1,35 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T) Method +## IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string) Method Sets a value as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void Do(this DefaultUnDo.IUnDoManager manager, System.Action setter, T newValue, T oldValue); +public static void Do(this DefaultUnDo.IUnDoManager manager, System.Action setter, T newValue, T oldValue, string description=null); ``` #### Type parameters - + `T` The type of the value. #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`setter` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +`setter` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') The [System.Action<>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') used to change the value. - -`newValue` [T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T).T') + +`newValue` [T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string).T') The new value. - -`oldValue` [T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T).T') + +`oldValue` [T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string).T') The old value. + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T)-manager 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T).manager') or [setter](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T)-setter 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T).setter') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string)-manager 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string).manager') or [setter](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string)-setter 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string).setter') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md similarity index 54% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md index c356eef..f472a27 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md @@ -1,31 +1,35 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T) Method +## IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string) Method Sets the element at the specified index on a [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void Do(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IList source, int index, T item); +public static void Do(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IList source, int index, T item, string description=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') + +`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') The [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). - + `index` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') The zero-based index of the element to get or set. - -`item` [T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).T') + +`item` [T](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).T') The new item. + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-manager 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-source 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).source') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-manager 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-source 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md similarity index 50% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md index 1949e48..245ba0c 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md @@ -1,35 +1,39 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue) Method +## IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string) Method Sets the element with the specified key on a [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void Do(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IDictionary source, TKey key, TValue value); +public static void Do(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IDictionary source, TKey key, TValue value, string description=null); ``` #### Type parameters - + `TKey` The type of the key. - + `TValue` The type of the value. #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TKey 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TValue 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') + +`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TKey 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TValue 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). - -`key` [TKey](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TKey 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TKey') + +`key` [TKey](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TKey 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TKey') The key to set. - -`value` [TValue](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TValue 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TValue') + +`value` [TValue](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TValue 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TValue') The value to add. + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-manager 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).manager'), [source](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-source 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).source') or [key](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-key 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).key') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-manager 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).manager'), [source](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-source 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).source') or [key](#DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-key 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).key') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md similarity index 52% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md index 1ea51d2..5b999ff 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md @@ -1,27 +1,31 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T) Method +## IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string) Method Adds a value to a [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void DoAdd(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ICollection source, T item); +public static void DoAdd(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ICollection source, T item, string description=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') + +`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') The [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). - -`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).T') + +`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).T') The item to add. + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-manager 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).source') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string).md similarity index 51% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string).md index fcdd5cf..21a58a1 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string).md @@ -1,30 +1,34 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T) Method +## IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string) Method Adds an item from a [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static bool DoAdd(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ISet source, T item); +public static bool DoAdd(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ISet source, T item, string description=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.ISet<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') + +`source` [System.Collections.Generic.ISet<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1') The [System.Collections.Generic.ISet<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ISet-1 'System.Collections.Generic.ISet`1'). - -`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T).T') + +`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string).T') The item to add. + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Returns [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') -true if the command has been created, false if not because [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T).source') already contained [item](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T)-item 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T).item'). +true if the command has been created, false if not because [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string).source') already contained [item](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string)-item 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string).item'). #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T)-manager 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T).source') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md similarity index 52% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md index 56b3f7c..1dc4dae 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md @@ -1,35 +1,39 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue) Method +## IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string) Method Adds a value to a [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void DoAdd(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IDictionary source, TKey key, TValue value); +public static void DoAdd(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IDictionary source, TKey key, TValue value, string description=null); ``` #### Type parameters - + `TKey` The type of the key. - + `TValue` The type of the value. #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TValue 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') + +`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TValue 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). - -`key` [TKey](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TKey') + +`key` [TKey](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TKey') The key to add. - -`value` [TValue](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-TValue 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).TValue') + +`value` [TValue](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-TValue 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).TValue') The value to add. + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-manager 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).manager'), [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).source') or [key](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue)-key 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue).key') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).manager'), [source](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).source') or [key](#DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string)-key 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string).key') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string).md similarity index 54% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string).md index bf22d4d..5110961 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string).md @@ -1,23 +1,27 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>) Method +## IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, string) Method Clears a [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void DoClear(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ICollection source); +public static void DoClear(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ICollection source, string description=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-)-T 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') + +`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') The [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-)-manager 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-)-source 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>).source') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, string).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, string).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md similarity index 56% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md index 2780451..fa0c7de 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md @@ -1,31 +1,35 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T) Method +## IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string) Method Inserts an item to a [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') at the specified index as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void DoInsert(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IList source, int index, T item); +public static void DoInsert(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IList source, int index, T item, string description=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') + +`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') The [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). - + `index` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') The zero-based index at which item should be inserted. - -`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).T') + +`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).T') The item to insert into the [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-manager 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T)-source 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T).source') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action_string).md similarity index 67% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action_string).md index 484b7f3..1e5c6e4 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action_string).md @@ -1,18 +1,22 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoOnDo(DefaultUnDo.IUnDoManager, System.Action) Method +## IUnDoManagerExtension.DoOnDo(DefaultUnDo.IUnDoManager, System.Action, string) Method Does a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation on the manager with the specified action with no undo. ```csharp -public static void DoOnDo(this DefaultUnDo.IUnDoManager manager, System.Action action); +public static void DoOnDo(this DefaultUnDo.IUnDoManager manager, System.Action action, string description=null); ``` #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - + `action` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') The [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') performed by [Do()](./DefaultUnDo-IUnDo-Do().md 'DefaultUnDo.IUnDo.Do()'). + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action)-manager 'DefaultUnDo.IUnDoManagerExtension.DoOnDo(DefaultUnDo.IUnDoManager, System.Action).manager') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoOnDo(DefaultUnDo.IUnDoManager, System.Action, string).manager') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action_string).md similarity index 67% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action_string).md index 8d2370a..bf59f1a 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action_string).md @@ -1,18 +1,22 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoOnUndo(DefaultUnDo.IUnDoManager, System.Action) Method +## IUnDoManagerExtension.DoOnUndo(DefaultUnDo.IUnDoManager, System.Action, string) Method Does a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation on the manager with the specified action with no do. ```csharp -public static void DoOnUndo(this DefaultUnDo.IUnDoManager manager, System.Action action); +public static void DoOnUndo(this DefaultUnDo.IUnDoManager manager, System.Action action, string description=null); ``` #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - + `action` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') The [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') performed by [Undo()](./DefaultUnDo-IUnDo-Undo().md 'DefaultUnDo.IUnDo.Undo()'). + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action)-manager 'DefaultUnDo.IUnDoManagerExtension.DoOnUndo(DefaultUnDo.IUnDoManager, System.Action).manager') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoOnUndo(DefaultUnDo.IUnDoManager, System.Action, string).manager') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md deleted file mode 100644 index bd6e9c8..0000000 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md +++ /dev/null @@ -1,30 +0,0 @@ -### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T) Method -Removes an item from a [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. -```csharp -public static bool DoRemove(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ICollection source, T item); -``` -#### Type parameters - -`T` -The type of element in the [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). - -#### Parameters - -`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') -The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - - -`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') -The [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). - - -`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-T 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).T') -The item to remove. - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') -true if the command has been created, false if not because [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).source') did not contained [item](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-item 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).item'). -#### Exceptions -[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-manager 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md new file mode 100644 index 0000000..66a021c --- /dev/null +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md @@ -0,0 +1,34 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') +## IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string) Method +Removes an item from a [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. +```csharp +public static bool DoRemove(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.ICollection source, T item, string description=null); +``` +#### Type parameters + +`T` +The type of element in the [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). + +#### Parameters + +`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') +The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). + + +`source` [System.Collections.Generic.ICollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1') +The [System.Collections.Generic.ICollection<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.ICollection-1 'System.Collections.Generic.ICollection`1'). + + +`item` [T](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).T') +The item to remove. + + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') +true if the command has been created, false if not because [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).source') did not contained [item](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-item 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).item'). +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[manager](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey).md deleted file mode 100644 index f47597c..0000000 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey).md +++ /dev/null @@ -1,34 +0,0 @@ -### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey) Method -Removes the item with the specified key from a [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. -```csharp -public static bool DoRemove(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IDictionary source, TKey key); -``` -#### Type parameters - -`TKey` -The type of the key. - - -`TValue` -The type of the value. - -#### Parameters - -`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') -The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - - -`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-TValue 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') -The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). - - -`key` [TKey](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).TKey') -The key to remove. - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') -true if the command has been created, false if not because [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).source') did not contained [key](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-key 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).key'). -#### Exceptions -[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-manager 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).manager'), [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).source') or [key](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey)-key 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey).key') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string).md new file mode 100644 index 0000000..38fc547 --- /dev/null +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string).md @@ -0,0 +1,38 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') +## IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string) Method +Removes the item with the specified key from a [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. +```csharp +public static bool DoRemove(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IDictionary source, TKey key, string description=null); +``` +#### Type parameters + +`TKey` +The type of the key. + + +`TValue` +The type of the value. + +#### Parameters + +`manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') +The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). + + +`source` [System.Collections.Generic.IDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TKey](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2')[TValue](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-TValue 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2') +The [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'). + + +`key` [TKey](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-TKey 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).TKey') +The key to remove. + + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') +true if the command has been created, false if not because [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).source') did not contained [key](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-key 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).key'). +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[manager](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).manager'), [source](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).source') or [key](#DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string)-key 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string).key') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int).md b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string).md similarity index 56% rename from documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int).md rename to documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string).md index b0a53a0..6b4cc12 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int).md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string).md @@ -1,27 +1,31 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[IUnDoManagerExtension](./DefaultUnDo-IUnDoManagerExtension.md 'DefaultUnDo.IUnDoManagerExtension') -## IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int) Method +## IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, string) Method Removes an item from a [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') at the specified index as a [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') operation. ```csharp -public static void DoRemoveAt(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IList source, int index); +public static void DoRemoveAt(this DefaultUnDo.IUnDoManager manager, System.Collections.Generic.IList source, int index, string description=null); ``` #### Type parameters - + `T` The type of element in the [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). #### Parameters - + `manager` [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager') The [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'). - -`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int)-T 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') + +`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](#DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string)-T 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, string).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') The [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1'). - + `index` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') The zero-based index at which item should be removed. + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the operation. + #### Exceptions [System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') -[manager](#DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int)-manager 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int).source') is null. +[manager](#DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string)-manager 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, string).manager') or [source](#DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string)-source 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, string).source') is null. diff --git a/documentation/api/DefaultUnDo-IUnDoManagerExtension.md b/documentation/api/DefaultUnDo-IUnDoManagerExtension.md index 9811b18..fb444b2 100644 --- a/documentation/api/DefaultUnDo-IUnDoManagerExtension.md +++ b/documentation/api/DefaultUnDo-IUnDoManagerExtension.md @@ -6,17 +6,17 @@ public static class IUnDoManagerExtension ``` Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 IUnDoManagerExtension ### Methods -- [Do(DefaultUnDo.IUnDoManager, System.Action, System.Action)](./DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action).md 'DefaultUnDo.IUnDoManagerExtension.Do(DefaultUnDo.IUnDoManager, System.Action, System.Action)') -- [Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T)](./DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T).md 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T)') -- [Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T)](./DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T)') -- [Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue)](./DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue)') -- [DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T)](./DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T)') -- [DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T)](./DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T).md 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T)') -- [DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue)](./DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue).md 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue)') -- [DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>)](./DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-).md 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>)') -- [DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T)](./DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T).md 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T)') -- [DoOnDo(DefaultUnDo.IUnDoManager, System.Action)](./DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action).md 'DefaultUnDo.IUnDoManagerExtension.DoOnDo(DefaultUnDo.IUnDoManager, System.Action)') -- [DoOnUndo(DefaultUnDo.IUnDoManager, System.Action)](./DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action).md 'DefaultUnDo.IUnDoManagerExtension.DoOnUndo(DefaultUnDo.IUnDoManager, System.Action)') -- [DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T)](./DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T).md 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T)') -- [DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey)](./DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey).md 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey)') -- [DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int)](./DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int).md 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int)') +- [Do(DefaultUnDo.IUnDoManager, System.Action, System.Action, string)](./DefaultUnDo-IUnDoManagerExtension-Do(DefaultUnDo-IUnDoManager_System-Action_System-Action_string).md 'DefaultUnDo.IUnDoManagerExtension.Do(DefaultUnDo.IUnDoManager, System.Action, System.Action, string)') +- [Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string)](./DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Action-T-_T_T_string).md 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Action<T>, T, T, string)') +- [Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string)](./DefaultUnDo-IUnDoManagerExtension-Do-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md 'DefaultUnDo.IUnDoManagerExtension.Do<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string)') +- [Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string)](./DefaultUnDo-IUnDoManagerExtension-Do-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md 'DefaultUnDo.IUnDoManagerExtension.Do<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string)') +- [DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string)](./DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string)') +- [DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string)](./DefaultUnDo-IUnDoManagerExtension-DoAdd-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ISet-T-_T_string).md 'DefaultUnDo.IUnDoManagerExtension.DoAdd<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ISet<T>, T, string)') +- [DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string)](./DefaultUnDo-IUnDoManagerExtension-DoAdd-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_string).md 'DefaultUnDo.IUnDoManagerExtension.DoAdd<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, TValue, string)') +- [DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, string)](./DefaultUnDo-IUnDoManagerExtension-DoClear-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_string).md 'DefaultUnDo.IUnDoManagerExtension.DoClear<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, string)') +- [DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string)](./DefaultUnDo-IUnDoManagerExtension-DoInsert-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_T_string).md 'DefaultUnDo.IUnDoManagerExtension.DoInsert<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, T, string)') +- [DoOnDo(DefaultUnDo.IUnDoManager, System.Action, string)](./DefaultUnDo-IUnDoManagerExtension-DoOnDo(DefaultUnDo-IUnDoManager_System-Action_string).md 'DefaultUnDo.IUnDoManagerExtension.DoOnDo(DefaultUnDo.IUnDoManager, System.Action, string)') +- [DoOnUndo(DefaultUnDo.IUnDoManager, System.Action, string)](./DefaultUnDo-IUnDoManagerExtension-DoOnUndo(DefaultUnDo-IUnDoManager_System-Action_string).md 'DefaultUnDo.IUnDoManagerExtension.DoOnUndo(DefaultUnDo.IUnDoManager, System.Action, string)') +- [DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string)](./DefaultUnDo-IUnDoManagerExtension-DoRemove-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-ICollection-T-_T_string).md 'DefaultUnDo.IUnDoManagerExtension.DoRemove<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.ICollection<T>, T, string)') +- [DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string)](./DefaultUnDo-IUnDoManagerExtension-DoRemove-TKey_TValue-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_string).md 'DefaultUnDo.IUnDoManagerExtension.DoRemove<TKey,TValue>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IDictionary<TKey,TValue>, TKey, string)') +- [DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, string)](./DefaultUnDo-IUnDoManagerExtension-DoRemoveAt-T-(DefaultUnDo-IUnDoManager_System-Collections-Generic-IList-T-_int_string).md 'DefaultUnDo.IUnDoManagerExtension.DoRemoveAt<T>(DefaultUnDo.IUnDoManager, System.Collections.Generic.IList<T>, int, string)') diff --git a/documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(System-Collections-Generic-IList-T-_int_T_bool).md b/documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(System-Collections-Generic-IList-T-_int_T_bool).md index 68df616..d75a277 100644 --- a/documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(System-Collections-Generic-IList-T-_int_T_bool).md +++ b/documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(System-Collections-Generic-IList-T-_int_T_bool).md @@ -2,7 +2,7 @@ ## ListUnDo(System.Collections.Generic.IList<T>, int, T, bool) Constructor Initialises an instance of [ListUnDo<T>](./DefaultUnDo-ListUnDo-T-.md 'DefaultUnDo.ListUnDo<T>'). ```csharp -public ListUnDo(System.Collections.Generic.IList source, int index, T element, bool isAdd); +public ListUnDo(System.Collections.Generic.IList source, int index, T item, bool isAdd); ``` #### Parameters @@ -13,8 +13,8 @@ The [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/ `index` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') The index of the operation. - -`element` [T](./DefaultUnDo-ListUnDo-T-.md#DefaultUnDo-ListUnDo-T--T 'DefaultUnDo.ListUnDo<T>.T') + +`item` [T](./DefaultUnDo-ListUnDo-T-.md#DefaultUnDo-ListUnDo-T--T 'DefaultUnDo.ListUnDo<T>.T') The argument of the operation. diff --git a/documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(string_System-Collections-Generic-IList-T-_int_T_bool).md b/documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(string_System-Collections-Generic-IList-T-_int_T_bool).md new file mode 100644 index 0000000..d326376 --- /dev/null +++ b/documentation/api/DefaultUnDo-ListUnDo-T--ListUnDo(string_System-Collections-Generic-IList-T-_int_T_bool).md @@ -0,0 +1,30 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[ListUnDo<T>](./DefaultUnDo-ListUnDo-T-.md 'DefaultUnDo.ListUnDo<T>') +## ListUnDo(string, System.Collections.Generic.IList<T>, int, T, bool) Constructor +Initialises an instance of [ListUnDo<T>](./DefaultUnDo-ListUnDo-T-.md 'DefaultUnDo.ListUnDo<T>'). +```csharp +public ListUnDo(string description, System.Collections.Generic.IList source, int index, T item, bool isAdd); +``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of this [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') + + +`source` [System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](./DefaultUnDo-ListUnDo-T-.md#DefaultUnDo-ListUnDo-T--T 'DefaultUnDo.ListUnDo<T>.T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') +The [System.Collections.Generic.IList<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') on which the operation is performed. + + +`index` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') +The index of the operation. + + +`item` [T](./DefaultUnDo-ListUnDo-T-.md#DefaultUnDo-ListUnDo-T--T 'DefaultUnDo.ListUnDo<T>.T') +The argument of the operation. + + +`isAdd` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') +true if the operation is an [System.Collections.Generic.IList<>.IndexOf(`0)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1.IndexOf#System_Collections_Generic_IList_1_IndexOf__0_ 'System.Collections.Generic.IList`1.IndexOf(`0)'), else false for a [System.Collections.Generic.IList<>.RemoveAt(System.Int32)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1.RemoveAt#System_Collections_Generic_IList_1_RemoveAt_System_Int32_ 'System.Collections.Generic.IList`1.RemoveAt(System.Int32)'). + +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[source](#DefaultUnDo-ListUnDo-T--ListUnDo(string_System-Collections-Generic-IList-T-_int_T_bool)-source 'DefaultUnDo.ListUnDo<T>.ListUnDo(string, System.Collections.Generic.IList<T>, int, T, bool).source') is null. diff --git a/documentation/api/DefaultUnDo-ListUnDo-T-.md b/documentation/api/DefaultUnDo-ListUnDo-T-.md index 0a404ad..e8dd8d4 100644 --- a/documentation/api/DefaultUnDo-ListUnDo-T-.md +++ b/documentation/api/DefaultUnDo-ListUnDo-T-.md @@ -15,3 +15,4 @@ The type of element in the [System.Collections.Generic.IList<>](https://do ### Constructors - [ListUnDo(System.Collections.Generic.IList<T>, int, T, bool)](./DefaultUnDo-ListUnDo-T--ListUnDo(System-Collections-Generic-IList-T-_int_T_bool).md 'DefaultUnDo.ListUnDo<T>.ListUnDo(System.Collections.Generic.IList<T>, int, T, bool)') +- [ListUnDo(string, System.Collections.Generic.IList<T>, int, T, bool)](./DefaultUnDo-ListUnDo-T--ListUnDo(string_System-Collections-Generic-IList-T-_int_T_bool).md 'DefaultUnDo.ListUnDo<T>.ListUnDo(string, System.Collections.Generic.IList<T>, int, T, bool)') diff --git a/documentation/api/DefaultUnDo-UnDo-UnDo(string_System-Action_System-Action).md b/documentation/api/DefaultUnDo-UnDo-UnDo(string_System-Action_System-Action).md new file mode 100644 index 0000000..831a9ba --- /dev/null +++ b/documentation/api/DefaultUnDo-UnDo-UnDo(string_System-Action_System-Action).md @@ -0,0 +1,19 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[UnDo](./DefaultUnDo-UnDo.md 'DefaultUnDo.UnDo') +## UnDo(string, System.Action, System.Action) Constructor +Initialises an instance of [UnDo](./DefaultUnDo-UnDo.md 'DefaultUnDo.UnDo'). +```csharp +public UnDo(string description, System.Action doAction, System.Action undoAction); +``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of this [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') + + +`doAction` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') +The action called by [Do()](./DefaultUnDo-IUnDo-Do().md 'DefaultUnDo.IUnDo.Do()'). + + +`undoAction` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') +The action called by [Undo()](./DefaultUnDo-IUnDo-Undo().md 'DefaultUnDo.IUnDo.Undo()'). + diff --git a/documentation/api/DefaultUnDo-UnDo.md b/documentation/api/DefaultUnDo-UnDo.md index 51e7cc4..aef08d2 100644 --- a/documentation/api/DefaultUnDo-UnDo.md +++ b/documentation/api/DefaultUnDo-UnDo.md @@ -10,3 +10,4 @@ Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.O Implements [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') ### Constructors - [UnDo(System.Action, System.Action)](./DefaultUnDo-UnDo-UnDo(System-Action_System-Action).md 'DefaultUnDo.UnDo.UnDo(System.Action, System.Action)') +- [UnDo(string, System.Action, System.Action)](./DefaultUnDo-UnDo-UnDo(string_System-Action_System-Action).md 'DefaultUnDo.UnDo.UnDo(string, System.Action, System.Action)') diff --git a/documentation/api/DefaultUnDo-UnDoManager-BeginGroup().md b/documentation/api/DefaultUnDo-UnDoManager-BeginGroup(string).md similarity index 69% rename from documentation/api/DefaultUnDo-UnDoManager-BeginGroup().md rename to documentation/api/DefaultUnDo-UnDoManager-BeginGroup(string).md index 479615e..de2bb84 100644 --- a/documentation/api/DefaultUnDo-UnDoManager-BeginGroup().md +++ b/documentation/api/DefaultUnDo-UnDoManager-BeginGroup(string).md @@ -1,10 +1,15 @@ ### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[UnDoManager](./DefaultUnDo-UnDoManager.md 'DefaultUnDo.UnDoManager') -## UnDoManager.BeginGroup() Method +## UnDoManager.BeginGroup(string) Method Starts a group of operation and return an [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') to stop the group. If multiple calls to this method are made, the group will be stoped once each [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') returned are disposed. ```csharp -public System.IDisposable BeginGroup(); +public System.IDisposable BeginGroup(string description=null); ``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of the group operation. + #### Returns [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') An [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') to stop the group operation. diff --git a/documentation/api/DefaultUnDo-UnDoManager-RedoDescriptions.md b/documentation/api/DefaultUnDo-UnDoManager-RedoDescriptions.md new file mode 100644 index 0000000..e2594bf --- /dev/null +++ b/documentation/api/DefaultUnDo-UnDoManager-RedoDescriptions.md @@ -0,0 +1,8 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[UnDoManager](./DefaultUnDo-UnDoManager.md 'DefaultUnDo.UnDoManager') +## UnDoManager.RedoDescriptions Property +Gets the descriptions in order of all the [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') which can be redone. +```csharp +public System.Collections.Generic.IEnumerable RedoDescriptions { get; } +``` +#### Property Value +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') diff --git a/documentation/api/DefaultUnDo-UnDoManager-UnDoManager(int).md b/documentation/api/DefaultUnDo-UnDoManager-UnDoManager(int).md new file mode 100644 index 0000000..4192d9e --- /dev/null +++ b/documentation/api/DefaultUnDo-UnDoManager-UnDoManager(int).md @@ -0,0 +1,11 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[UnDoManager](./DefaultUnDo-UnDoManager.md 'DefaultUnDo.UnDoManager') +## UnDoManager(int) Constructor +Initialises an instance of [UnDoManager](./DefaultUnDo-UnDoManager.md 'DefaultUnDo.UnDoManager'). +```csharp +public UnDoManager(int maxCapacity); +``` +#### Parameters + +`maxCapacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') +The maximum number of operation this [UnDoManager](./DefaultUnDo-UnDoManager.md 'DefaultUnDo.UnDoManager') can record before errasing oldest ones. + diff --git a/documentation/api/DefaultUnDo-UnDoManager-UndoDescriptions.md b/documentation/api/DefaultUnDo-UnDoManager-UndoDescriptions.md new file mode 100644 index 0000000..c79f0a4 --- /dev/null +++ b/documentation/api/DefaultUnDo-UnDoManager-UndoDescriptions.md @@ -0,0 +1,8 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[UnDoManager](./DefaultUnDo-UnDoManager.md 'DefaultUnDo.UnDoManager') +## UnDoManager.UndoDescriptions Property +Gets the descriptions in order of all the [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') which can be undone. +```csharp +public System.Collections.Generic.IEnumerable UndoDescriptions { get; } +``` +#### Property Value +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') diff --git a/documentation/api/DefaultUnDo-UnDoManager.md b/documentation/api/DefaultUnDo-UnDoManager.md index 049d23e..00b5172 100644 --- a/documentation/api/DefaultUnDo-UnDoManager.md +++ b/documentation/api/DefaultUnDo-UnDoManager.md @@ -11,12 +11,15 @@ Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.O Implements [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager'), [System.ComponentModel.INotifyPropertyChanged](https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.INotifyPropertyChanged 'System.ComponentModel.INotifyPropertyChanged') ### Constructors - [UnDoManager()](./DefaultUnDo-UnDoManager-UnDoManager().md 'DefaultUnDo.UnDoManager.UnDoManager()') +- [UnDoManager(int)](./DefaultUnDo-UnDoManager-UnDoManager(int).md 'DefaultUnDo.UnDoManager.UnDoManager(int)') ### Properties - [CanRedo](./DefaultUnDo-UnDoManager-CanRedo.md 'DefaultUnDo.UnDoManager.CanRedo') - [CanUndo](./DefaultUnDo-UnDoManager-CanUndo.md 'DefaultUnDo.UnDoManager.CanUndo') +- [RedoDescriptions](./DefaultUnDo-UnDoManager-RedoDescriptions.md 'DefaultUnDo.UnDoManager.RedoDescriptions') +- [UndoDescriptions](./DefaultUnDo-UnDoManager-UndoDescriptions.md 'DefaultUnDo.UnDoManager.UndoDescriptions') - [Version](./DefaultUnDo-UnDoManager-Version.md 'DefaultUnDo.UnDoManager.Version') ### Methods -- [BeginGroup()](./DefaultUnDo-UnDoManager-BeginGroup().md 'DefaultUnDo.UnDoManager.BeginGroup()') +- [BeginGroup(string)](./DefaultUnDo-UnDoManager-BeginGroup(string).md 'DefaultUnDo.UnDoManager.BeginGroup(string)') - [Clear()](./DefaultUnDo-UnDoManager-Clear().md 'DefaultUnDo.UnDoManager.Clear()') - [Do(DefaultUnDo.IUnDo)](./DefaultUnDo-UnDoManager-Do(DefaultUnDo-IUnDo).md 'DefaultUnDo.UnDoManager.Do(DefaultUnDo.IUnDo)') - [Redo()](./DefaultUnDo-UnDoManager-Redo().md 'DefaultUnDo.UnDoManager.Redo()') diff --git a/documentation/api/DefaultUnDo-ValueUnDo-T--MergeInterval.md b/documentation/api/DefaultUnDo-ValueUnDo-T--MergeInterval.md new file mode 100644 index 0000000..d043035 --- /dev/null +++ b/documentation/api/DefaultUnDo-ValueUnDo-T--MergeInterval.md @@ -0,0 +1,9 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[ValueUnDo<T>](./DefaultUnDo-ValueUnDo-T-.md 'DefaultUnDo.ValueUnDo<T>') +## ValueUnDo<T>.MergeInterval Field +The [System.TimeSpan](https://docs.microsoft.com/en-us/dotnet/api/System.TimeSpan 'System.TimeSpan') interval equivalent [ValueUnDo<T>](./DefaultUnDo-ValueUnDo-T-.md 'DefaultUnDo.ValueUnDo<T>') instances should respect to be mergeable. +Default value is 500ms. +```csharp +public static readonly MergeInterval; +``` +#### Field Value +[System.TimeSpan](https://docs.microsoft.com/en-us/dotnet/api/System.TimeSpan 'System.TimeSpan') diff --git a/documentation/api/DefaultUnDo-ValueUnDo-T--ValueUnDo(string_System-Action-T-_T_T).md b/documentation/api/DefaultUnDo-ValueUnDo-T--ValueUnDo(string_System-Action-T-_T_T).md new file mode 100644 index 0000000..eaa6a36 --- /dev/null +++ b/documentation/api/DefaultUnDo-ValueUnDo-T--ValueUnDo(string_System-Action-T-_T_T).md @@ -0,0 +1,26 @@ +### [DefaultUnDo](./DefaultUnDo.md 'DefaultUnDo').[ValueUnDo<T>](./DefaultUnDo-ValueUnDo-T-.md 'DefaultUnDo.ValueUnDo<T>') +## ValueUnDo(string, System.Action<T>, T, T) Constructor +Initialises an instance of [ValueUnDo<T>](./DefaultUnDo-ValueUnDo-T-.md 'DefaultUnDo.ValueUnDo<T>'). +```csharp +public ValueUnDo(string description, System.Action setter, T newValue, T oldValue); +``` +#### Parameters + +`description` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') +The description of this [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') + + +`setter` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[T](./DefaultUnDo-ValueUnDo-T-.md#DefaultUnDo-ValueUnDo-T--T 'DefaultUnDo.ValueUnDo<T>.T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') +The action called to set the value. + + +`newValue` [T](./DefaultUnDo-ValueUnDo-T-.md#DefaultUnDo-ValueUnDo-T--T 'DefaultUnDo.ValueUnDo<T>.T') +The new value. + + +`oldValue` [T](./DefaultUnDo-ValueUnDo-T-.md#DefaultUnDo-ValueUnDo-T--T 'DefaultUnDo.ValueUnDo<T>.T') +The old value. + +#### Exceptions +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') +[setter](#DefaultUnDo-ValueUnDo-T--ValueUnDo(string_System-Action-T-_T_T)-setter 'DefaultUnDo.ValueUnDo<T>.ValueUnDo(string, System.Action<T>, T, T).setter') is null. diff --git a/documentation/api/DefaultUnDo-ValueUnDo-T-.md b/documentation/api/DefaultUnDo-ValueUnDo-T-.md index 9b05184..cd071d8 100644 --- a/documentation/api/DefaultUnDo-ValueUnDo-T-.md +++ b/documentation/api/DefaultUnDo-ValueUnDo-T-.md @@ -3,11 +3,12 @@ Provides an implementation of the [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') interface for setting value. ```csharp public sealed class ValueUnDo : +IMergeableUnDo, IUnDo ``` Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ValueUnDo<T> -Implements [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') +Implements [IMergeableUnDo](./DefaultUnDo-IMergeableUnDo.md 'DefaultUnDo.IMergeableUnDo'), [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') #### Type parameters `T` @@ -15,3 +16,6 @@ The type of value. ### Constructors - [ValueUnDo(System.Action<T>, T, T)](./DefaultUnDo-ValueUnDo-T--ValueUnDo(System-Action-T-_T_T).md 'DefaultUnDo.ValueUnDo<T>.ValueUnDo(System.Action<T>, T, T)') +- [ValueUnDo(string, System.Action<T>, T, T)](./DefaultUnDo-ValueUnDo-T--ValueUnDo(string_System-Action-T-_T_T).md 'DefaultUnDo.ValueUnDo<T>.ValueUnDo(string, System.Action<T>, T, T)') +### Fields +- [MergeInterval](./DefaultUnDo-ValueUnDo-T--MergeInterval.md 'DefaultUnDo.ValueUnDo<T>.MergeInterval') diff --git a/documentation/api/DefaultUnDo.md b/documentation/api/DefaultUnDo.md index 9954c97..1a2e5e8 100644 --- a/documentation/api/DefaultUnDo.md +++ b/documentation/api/DefaultUnDo.md @@ -13,5 +13,6 @@ - [UnDoManager](./DefaultUnDo-UnDoManager.md 'DefaultUnDo.UnDoManager') - [ValueUnDo<T>](./DefaultUnDo-ValueUnDo-T-.md 'DefaultUnDo.ValueUnDo<T>') ### Interfaces +- [IMergeableUnDo](./DefaultUnDo-IMergeableUnDo.md 'DefaultUnDo.IMergeableUnDo') - [IUnDo](./DefaultUnDo-IUnDo.md 'DefaultUnDo.IUnDo') - [IUnDoManager](./DefaultUnDo-IUnDoManager.md 'DefaultUnDo.IUnDoManager')