We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 548782f + 05b1fba commit 7bf2d3fCopy full SHA for 7bf2d3f
1 file changed
src/TypeGuard.Winforms/WinFormsInput.cs
@@ -42,7 +42,7 @@ public class WinFormsInput(Control control) : IInputProvider
42
public string? GetInput()
43
{
44
string? text = _control.InvokeRequired
45
- ? (string?)_control.Invoke(() => _control.Text)
+ ? _control.Invoke(() => _control.Text)
46
: _control.Text;
47
48
return string.IsNullOrEmpty(text) ? null : text.Trim();
0 commit comments