public static void DoProc() { // non-generic IEnumerable valiable can not use LINQ method. var list = new Customer1226().GetErrors(); // IEnumerable<T> can use it. IEnumerable <string> sList = new string[] { "hello", "every", "one" }; // IEnumerator can not iteration, access with movenext() and current prop. IEnumerator c1 = new Customer12262(); while (c1.MoveNext()) { Console.WriteLine(c1.Current); } }
public CreditLimitValidator(Customer1226 cus) { val = cus; }