Skip to content

Writing to System.Console should not throw an exception #49

@ErikSchierboom

Description

@ErikSchierboom

If I run the analyzers on this code:

public class TestClass
{
    public static void Main()
    {
        System.Console.WriteLine();
    }
}

A null-reference exception is thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions