You can for example create an instance of List<object>
, which implements IEnumerable<object>
. Example:
List<object> list = new List<object>();
list.Add(1);
list.Add(4);
list.Add(5);
IEnumerable<object> en = list;
CallFunction(en);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…