use collection initializer
var list = new List<IMyCustomType> { new MyCustomTypeOne(){Properties should be given here}, new MyCustomTypeTwo(){Properties should be given here}, new MyCustomTypeThree(){Properties should be given here}, }
Atish dipipkor
source share