list inline initialization c# code example
Example 1: c# list string initialize inline
List<string> games = new List<string>() { "Doom", "Tetris", "City of Heroes" }
Example 2: initialize list in c#
List<string> optionList = new List<string>
{ "AdditionalCardPersonAdressType", /* rest of elements */ };