-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename IsNullOrEmptyConverter
to IsStringNullOrEmptyConverter
#289
Conversation
src/CommunityToolkit.Maui/Converters/IsStringNullOrEmptyConverter.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Maui.UnitTests/Converters/IsStringNotNullOrEmptyConverter_Tests.cs
Show resolved
Hide resolved
…ter.cs Co-authored-by: Shaun Lawrence <[email protected]>
src/CommunityToolkit.Maui/Converters/IsStringNullOrEmptyConverter.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @brminnick
@brminnick Hi, think this change has broken my use case. Was using this converter to check if Any chance of a converter to check if an |
@IeuanWalker I suspect we will need an I don't know what the correct approach is here in terms of opening a proposal to cover this work or not. I shall delegate to the rest of the team on this one: @jfversluis @VladislavAntonyuk @pictos @brminnick |
@IeuanWalker I suggest to create a discussion. The new control by its name can be used for String only. |
@VladislavAntonyuk will open a discussion now. I tried using the NotEqualConverter but doesn't seem to work for |
Description of Change
This PR renames the following converters:
IsNullOrEmptyConverter
toIsStringNullOrEmptyConverter
InvalidArgumentException
ifobject? value
is notstring
string.IsNullOrEmpty
to evaluatevalue
IsNotNullOrEmptyConverter
toIsStringNotNullOrEmptyConverter
InvalidArgumentException
ifobject? value
is notstring
string.IsNullOrEmpty
to evaluatevalue
Linked Issues
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PR