BUG - Intellisense does not work within a nested object initiailizer
When using and object initializer on a property within a parent object initializer, the intellisense show the global intellisense list.
This code shows the issue:
void Main()
{
new Foo
{ // Placing cursor after this brace and pressing space gives a drop-down list with "Qux", as expected
Bar =
{ // Placing cursor after this brace and pressing space give th same list as Ctrl+Space in an empty query. Expected a list with "Baz".
}
}.Dump();
}
// Define other methods and classes here
class Foo
{
public Foo()
{
Bar = new Bar();
}
public Bar Bar { get; set; }
public string Qux { get; set; }
}
class Bar
{
public string Baz { get; set; }
}
-
Andrew Cooper commented
This is in licensed LINQPad 5.31.0