Skip to content

[BUG] IsListNullOrEmptyConverter fails when parameter is an array #2395

@jenscski

Description

@jenscski

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

After updating to .net9 and community toolkit maui 10, some parts started to fail.

I narrowed it down to IsListNullOrEmptyConverter which does not support arrays, as the parameter for the converter is an Enumerable, it should probably also support arrays as parameter.

Expected Behavior

That the converter work the same way as it did in version 9 ot the toolkit

Steps To Reproduce

Run the console application in the reproduction

Link to public reproduction project repository

https://github.com/jenscski/CommunityToolkitMauiArrayInListConverters

Environment

- .NET MAUI CommunityToolkit: 10.0.0
- OS:
- .NET MAUI: 9.0.21

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions