1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// CS0747: Inconsistent `collection initializer' member declaration // Line: 16 using System; using System.Collections; class Data { } public class Test { static void Main () { var c = new ArrayList { 1, Count = 1 }; } }