Browse Source

Merge pull request #6228 from MihaMarkic/makes_readonly_struct

Makes TextBox.UndoRedoState struct readonly
pull/6245/head
Max Katz 5 years ago
committed by GitHub
parent
commit
838cd914ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/TextBox.cs

2
src/Avalonia.Controls/TextBox.cs

@ -145,7 +145,7 @@ namespace Avalonia.Controls
(o, v) => o.UndoLimit = v,
unsetValue: -1);
struct UndoRedoState : IEquatable<UndoRedoState>
readonly struct UndoRedoState : IEquatable<UndoRedoState>
{
public string Text { get; }
public int CaretPosition { get; }

Loading…
Cancel
Save