You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sample/ImmutableEditableObjectAdapter.Samples/GeneratedFiles/ImmutableEditableObjectAdapter/ImmutableEditableObjectAdapter.ImmutableEditableObjectAdapterGenerator/EditableObjectAdapterDeclaration.g.cs
+60-14Lines changed: 60 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,21 @@ namespace System.ComponentModel
5
5
usingglobal::System.Runtime.CompilerServices;
6
6
7
7
/// <summary>
8
-
/// Provides the old, and new value of the <see cref="EditedEventHandler{TContract}"/>.
8
+
/// Provides the old, and new value of the <see cref="EditedEventHandler{TContract}"/>, and indicates whether the value has changed.
9
9
/// </summary>
10
10
/// <typeparam name="TContract">The type of the contract <c>record</c>.</typeparam>
/// Occurs before <see cref="IEditableObject.EndEdit"/> replaces the immutable state <c>record</c>, or <see cref="IEditableObject.CancelEdit"/> discards changes.
42
+
/// </summary>
43
+
eventEventHandler?Edited;
44
+
}
34
45
35
46
/// <summary>
36
47
/// Derive a <c>sealed partial class</c> to generate a <see cref="IEditableObject"/> from a immutable state <c>record</c> type.
37
48
/// <br/>
38
49
/// Update the immutable state when the <see cref="Edited"/> event indicates the state is replaced.
39
50
/// </summary>
40
51
/// <typeparam name="TContract">The type of the contract <c>record</c>.</typeparam>
Copy file name to clipboardExpand all lines: sample/ImmutableEditableObjectAdapter.Samples/GeneratedFiles/ImmutableEditableObjectAdapter/ImmutableEditableObjectAdapter.ImmutableEditableObjectAdapterGenerator/EditablePerson.g.cs
+29-15Lines changed: 29 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,35 @@ public override void CancelEdit()
0 commit comments