Skip to content

Why is this returning true ? string.Empty.All(_ => char.IsNumber(_)); #63039

@leonidasdedousis

Description

@leonidasdedousis

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

string.Empty returns true on the IsNumber test

string.Empty.All(_ => char.IsNumber(_)); => true

Expected Behavior

Return False

Steps To Reproduce

string.Empty.All(_ => char.IsNumber(_));

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedneeds-area-labelUsed by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions