-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
654 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...o-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<T> source, T item, bool isAdd); | ||
``` | ||
#### Parameters | ||
<a name='DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool)-description'></a> | ||
`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') | ||
|
||
<a name='DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool)-source'></a> | ||
`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. | ||
|
||
<a name='DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool)-item'></a> | ||
`item` [T](./DefaultUnDo-CollectionUnDo-T-.md#DefaultUnDo-CollectionUnDo-T--T 'DefaultUnDo.CollectionUnDo<T>.T') | ||
The argument of the operation. | ||
|
||
<a name='DefaultUnDo-CollectionUnDo-T--CollectionUnDo(string_System-Collections-Generic-ICollection-T-_T_bool)-isAdd'></a> | ||
`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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<TKey,TValue> source, TKey key, TValue value, bool isAdd); | ||
``` | ||
#### Parameters | ||
<a name='DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool)-description'></a> | ||
`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') | ||
|
||
<a name='DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool)-source'></a> | ||
`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. | ||
|
||
<a name='DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool)-key'></a> | ||
`key` [TKey](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TKey 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TKey') | ||
The key of the operation. | ||
|
||
<a name='DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool)-value'></a> | ||
`value` [TValue](./DefaultUnDo-DictionaryUnDo-TKey_TValue-.md#DefaultUnDo-DictionaryUnDo-TKey_TValue--TValue 'DefaultUnDo.DictionaryUnDo<TKey,TValue>.TValue') | ||
The value of the operation. | ||
|
||
<a name='DefaultUnDo-DictionaryUnDo-TKey_TValue--DictionaryUnDo(string_System-Collections-Generic-IDictionary-TKey_TValue-_TKey_TValue_bool)-isAdd'></a> | ||
`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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
documentation/api/DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
<a name='DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--)-description'></a> | ||
`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') | ||
|
||
<a name='DefaultUnDo-GroupUnDo-GroupUnDo(string_DefaultUnDo-IUnDo--)-commands'></a> | ||
`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. |
20 changes: 20 additions & 0 deletions
20
documentation/api/DefaultUnDo-GroupUnDo-TryGetSingle-T-(T).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<T>(out T command); | ||
``` | ||
#### Type parameters | ||
<a name='DefaultUnDo-GroupUnDo-TryGetSingle-T-(T)-T'></a> | ||
`T` | ||
|
||
|
||
#### Parameters | ||
<a name='DefaultUnDo-GroupUnDo-TryGetSingle-T-(T)-command'></a> | ||
`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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.