Skip to content

Commit

Permalink
chore: Simplify ToString
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Jan 31, 2025
1 parent a8bca2f commit b14e1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.wasm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private void ApplyEnterKeyHint()
var enterKeyHintValue = enterKeyHint switch
{
EnterKeyHint.Default => "",
_ when Enum.IsDefined(typeof(EnterKeyHint), enterKeyHint) => enterKeyHint.ToString("g").ToLowerInvariant(),
_ when Enum.IsDefined(typeof(EnterKeyHint), enterKeyHint) => enterKeyHint.ToString().ToLowerInvariant(),
_ => throw new ArgumentOutOfRangeException($"Invalid value of EnterKeyHint ({enterKeyHint})"),
};

Expand Down

0 comments on commit b14e1a5

Please sign in to comment.