R
ree
I am new to C#
in C++ you can use vectors to handle a unknown quantity of set of objects.
But in C# not sure what to use.
As I tried arraylists but they can hold a variety of objects. So when I try
to use functions that go through (eg. for loop) of group objects (eg. Cars)
and get their (attributes eg. for Class Car attribute Year of Make ) I am
having compilation errors.
Is their anything easier than arraylists for C# like vectors in C++. Is
there a similar equivalent to vectors in C#?
Or should I use create an enormous array even though it will have memory
issues?
in C++ you can use vectors to handle a unknown quantity of set of objects.
But in C# not sure what to use.
As I tried arraylists but they can hold a variety of objects. So when I try
to use functions that go through (eg. for loop) of group objects (eg. Cars)
and get their (attributes eg. for Class Car attribute Year of Make ) I am
having compilation errors.
Is their anything easier than arraylists for C# like vectors in C++. Is
there a similar equivalent to vectors in C#?
Or should I use create an enormous array even though it will have memory
issues?