Skip to content

Commit

Permalink
Merge pull request #6228 from MihaMarkic/makes_readonly_struct
Browse files Browse the repository at this point in the history
Makes TextBox.UndoRedoState struct readonly
  • Loading branch information
maxkatz6 committed Jul 10, 2021
2 parents ab9235e + a63ea76 commit 838cd91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public class TextBox : TemplatedControl, UndoRedoHelper<TextBox.UndoRedoState>.I
(o, v) => o.UndoLimit = v,
unsetValue: -1);

struct UndoRedoState : IEquatable<UndoRedoState>
readonly struct UndoRedoState : IEquatable<UndoRedoState>
{
public string Text { get; }
public int CaretPosition { get; }
Expand Down

0 comments on commit 838cd91

Please sign in to comment.