using System.Collections.Generic;
public static void Main()
static void Print<T>(IEnumerable<T> items) => Console.WriteLine($"[{string.Join(",", items)}]");
var foo = new Foo{ Names = {23, 42} };
var bar = new Foo{ Names = new List<int>{23, 42} };
public List<int> Names { get; set; } = new List<int>{100};