when looking at the following snippet of code, how is the following possible?
public class CustomerInfoCollection : IList
private ArrayList m_alCustomerInfo;
//constructor yada yada yada
public int Add(object value)
if (value is CustomerInfo)
//do somehting else here
My question is: the Add function returns an integer. However, the body returns an ArrayList. Wouldn't that throw some sort of an Exception?
thanks from a C# newbie....