1 // CS1954: The best overloaded collection initalizer method `Data.Add(ref int)' cannot have 'ref', or `out' modifier
6 using System
.Collections
;
8 class Data
: IEnumerable
10 public IEnumerator
GetEnumerator () { return null; }
12 public void Add (ref int b
)
21 var c
= new Data { 1 }
;