Skip to content

Process.ToString() can throw #1520

Closed
@iSazonov

Description

@iSazonov

System.Diagnostics.Process.ToString() throws if the process is already terminated.

Guideline says:

Your ToString() override should not throw an exception.

If the process is not terminated the method returns "System.Diagnostics.Process (process name)"
If the process is terminated I'd expect the method returns "System.Diagnostics.Process"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions