Given this code:
C#public List<string> Test()
{
var ret = new List<string>();
ret.Add("Foo");
ret.Add("Bar");
return ret;
}
I get the suggestion to Inline Temp, and I get this:
C#public List<string> Test()
{
new List<string>().Add("Foo");
new List<string>().Add("Bar");
return new List<string>();
}
I obviously don't want to return an empty list.
Hi Eric,
Thank you for the sample. I reproduced the issue and we are working on it.