C
Chris
I don't understand why the ArrayList's Add() method is public virtual, but
the array of items that the ArrayList uses is private (the variable is
'object[] _items' in the ArrayList). This makes it impossible to re-write
the Add() method in a class that derives from ArrayList. I have this type
of problem with so many of the CLR classes. Why bother making the method
virtual if it's impossible to re-write it because it uses private variables.
Am I making any sense? I guess I'll just have to re-write the entire
ArrayList class just so i can make a small change to one method.
Chris
the array of items that the ArrayList uses is private (the variable is
'object[] _items' in the ArrayList). This makes it impossible to re-write
the Add() method in a class that derives from ArrayList. I have this type
of problem with so many of the CLR classes. Why bother making the method
virtual if it's impossible to re-write it because it uses private variables.
Am I making any sense? I guess I'll just have to re-write the entire
ArrayList class just so i can make a small change to one method.
Chris