Interface for all objects that can be modified (dirty state) and expose some functionalities and events.
| 8 | /// Interface for all objects that can be modified (dirty state) and expose some functionalities and events. |
| 9 | /// </summary> |
| 10 | public interface IEditable |
| 11 | { |
| 12 | /// <summary> |
| 13 | /// Occurs when object gets edited. |
| 14 | /// </summary> |
| 15 | event Action OnEdited; |
| 16 | |
| 17 | /// <summary> |
| 18 | /// Gets a value indicating whether this object is edited (dirty state). |
| 19 | /// </summary> |
| 20 | bool IsEdited { get; } |
| 21 | |
| 22 | /// <summary> |
| 23 | /// Marks object as edited (sets dirty flag). |
| 24 | /// </summary> |
| 25 | void MarkAsEdited(); |
| 26 | } |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected