I'm new to C# -- under 50 lines of code in.
So the question is ArrayList in C# is a good substitute for ArrayList in Java.
Here are some differences that I've noticed:
So this leads me to believe that I'm missing something here - perhaps something about the C# design philosophy.
I've tried digging around the Internet for C# for Java programmers but I still do not have good answers to this question.
Use List<T> for generics, that is roughly equivalent to Java ArrayList
The List(Of T) class is the generic equivalent of the ArrayList class. It implements the IList(Of T) generic interface by using an array whose size is dynamically increased as required.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With