Skip to content

Consider to throw a better exception in System.Media.SoundPlayer.LoadAsync #5259

Open
@huoyaoyuan

Description

@huoyaoyuan

dotnet/runtime#57896 (comment)

It throws NullReferenceException if there's nothing to load. Consider InvalidOperationException?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions