Skip to content

Intellisense should suggest static members of target type #28603

@jnm2

Description

@jnm2

(Visual Studio 15.7.5)

Intellisense should suggest static members of the target type which return an instance of the target type.

After typing Foo(e, wanting to pass an empty immutable array:

image

After typing Foo(e (ReSharper):

image

Visual Studio, after typing Foo(e):

image

With ReSharper, after typing Foo(e):

image

This is also quite useful for hand-rolled discriminated unions. (foo = Foo.Bar, foo = Foo.Baz(3), etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Complete

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions