how to populate list in c#

39

how to populate list in c# -

var list = new List<IMyCustomType>{ 
    new MyCustomTypeOne(), 
    new MyCustomTypeTwo(), 
    new MyCustomTypeThree() 
};

Comments

Submit
0 Comments