finding the maximum length of lists in c#

Try this:

Int32 length = yourList.Count;

In C#, arrays have a Length property, anything implementing IList<T> (including List<T>) will have a Count property.