Version Used: 16.6.0
using System.Collections.Immutable;
class Frog { }
class C
{
void M()
{
var builder = ImmutableArray.CreateBuilder<Frog>();
return new [||]C(builder.ToImmutable());
}
}
馃洜 Generate constructor in 'C':
using System.Collections.Immutable;
class Frog { }
class C
{
private ImmutableArray<Frog> immutableArrays;
public C(ImmutableArray<Frog> immutableArrays)
{
this.immutableArrays = immutableArrays;
}
void M()
{
var builder = ImmutableArray.CreateBuilder<Frog>();
return new C(builder.ToImmutable());
}
}
@allisonchou Want to takea look? We already have helpers that try to figure out names using Humanizer. Might be that this feature isn't properly going through that, or that we're not passing it the rigth data.
toads or polywogs would also be acceptable names here.
Most helpful comment
toadsorpolywogswould also be acceptable names here.