>>385
List<P> list = new() {new P(), new P(), new P(), new P(), new P()};
or
var list = new List<P>() {new P(), new P(), new P(), new P(), new P()};

class Pには明示的にコンストラクタが定義されておらず
インスタンスメンバもprivateなので生成時に個別の値は設定できない

https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers#collection-initializers