Skip to content

Simplifying access to nested type names #9436

Discussion options

You must be logged in to vote

That's just using static:

using static Program;

class Program
{
    static void Main()
    {
    }

    public class Nested {}
}

class Other
{
    Nested n = new(); // Works just fine.
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@The-Futurist
Comment options

Answer selected by The-Futurist
Comment options

You must be logged in to vote
1 reply
@The-Futurist
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants