using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Python.Test { public class ListMember { public ListMember(int value, string name) { Value = value; Name = name; } public int Value { get; set; } public string Name { get; set; } } public class ListConversionTester { public int GetLength(IEnumerable o) { return o.Count(); } public int GetLength(ICollection o) { return o.Count; } public int GetLength(IList o) { return o.Count; } public int GetLength2(IEnumerable o) { return o.Count(); } public int GetLength2(ICollection o) { return o.Count; } public int GetLength2(IList o) { return o.Count; } } }