dotnet / dotnet/dotnet-api-docs

Char doesn't accept null value

Open
#10,696 0 comments 0 reactions 0 assignees View on GitHub
area-WinForms Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Missing information

### Description

Hello, the article says that you can "turn off" the password mode putting the value null in a MaskedTextBox.PasswordChar ( = null) property but that accept only the type char and not char?, we can get it puttin '\0' to turn off this mode, but this isnt mentioned on the article. (if iam wrong, please tell me for learning, thanks).

### Page URL

https://learn.microsoft.com/pt-br/dotnet/api/system.windows.forms.maskedtextbox.passwordchar?view=windowsdesktop-9.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Windows.Forms/MaskedTextBox.xml

### Document Version Independent Id

68efb826-6f92-3f89-cc34-e8565c8363b2

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.