Skip to content

Change IConsole to ConsoleStreams or equivalent #1786

Closed
@jonsequitur

Description

@jonsequitur

Because IConsole was in part intended to explore future potential ideas for System.Console which will require a longer design period, we should change this interface to a concrete type with a more focused scope.

A suggestion made by @terrajobst in API review looked roughly like this:

public class ConsoleStreams
{
    public TextWriter StandardOutput { get; }
    public TextWriter StandardError { get; }
    public TextReader StandardInput { get; }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions