-
-
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.
finished mergeability of IUnDo (fix #3)
- Loading branch information
Showing
9 changed files
with
276 additions
and
62 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace DefaultUnDo | ||
namespace DefaultUnDo | ||
{ | ||
/// <summary> | ||
/// Provides a method to try to merge two <see cref="IUnDo"/> instances into a single one. | ||
/// </summary> | ||
public interface IMergeableUnDo : IUnDo | ||
{ | ||
bool TryMerge(IUnDo command, out IUnDo mergedCommand); | ||
/// <summary> | ||
/// Merges the current instance with the specified <see cref="IUnDo"/>. | ||
/// </summary> | ||
/// <param name="other">The other <see cref="IUnDo"/> instance the current one should try to merge with.</param> | ||
/// <param name="mergedCommand">The resulting merged <see cref="IUnDo"/> instance if the operation was successful.</param> | ||
/// <returns>true if the merge was successful; otherwise false.</returns> | ||
bool TryMerge(IUnDo other, out IUnDo mergedCommand); | ||
} | ||
} |
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
Oops, something went wrong.