Must IList be finite?
问题 Must .NET's IList be finite? Suppose I write a class FibonacciList implementing IList<BigInteger> The property Item[n] returns the nth Fibonacci number. The property IsReadOnly returns true. The methods IndexOf and Contains we can implement easily enough because the Fibonacci sequence is increasing - to test if the number m is Fibonacci, we need only to compute the finite sequence of Fibonacci numbers up to m. The method GetEnumerator() doing the right thing We've now implemented all the