Have you tried
for(int i = 0; i < cfmdeletelist.Length; i++)
(Capital L in Length)
You need to use the variable declared as a List -> DeleteList
Delete elementToDelete;
for(int i = 0; i < DeleteList.Length; i++)
{
elementToDelete = DeleteList[i];
elementToDelete.Dispose();
}
When you declare a variable of your own type like this
Delete cfmdeletelist = new Delete();
the object
cfmdeletelist
will only contain the methods and properties you have defined.
Did you define any Length property for the class
Delete
?