Skip to content

✨ Stop marking Sound as sealed #144

@mathew-odwyer

Description

@mathew-odwyer

Complete The Items Below

  • I have updated the title without removing the ✨ emoji.
  • I searched whether or not a feature request already exists.

Feature Request Purpose

Personally, when providing my own layer on top of Sound it would make life easier as I wouldn't resort to creating an instance and invoking it's methods like so:

public class MySound : Sound, IMySound
{
    private Sound sound;

    public MySound(string filePath)
    {
        this.sound = new Sound(filePath);
    }

    public void Play()
    {
        this.sound.Play();
    }
}

Solution

Marking it as sealed means I have to write more boilerplate; when I could just do:

public class MySound : Sound, IMySound
{
}

Anything Else

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions