Pardon, I wasn't clear enough..

Well, here is the example from my book:
Enum Status
    Best = 100
    Good = 90
    Bad = 50
End Enum

So Status.Best can be used to mark someone's work.  It's a nice
example, but most likely I will never use it in my place.
All our data is loaded from database, so if I would have some marking
system, most likely, I would have best, good and bad stored somewhere
in database.  I think this is standard.  But since enumeration exists,
someone is using it.  I would like to see situations where enumeration
is the best solution.

Same with ArrayList.  Here is the example from my notes:
Dim myArrayList As New ArrayList
myArrayList.Add("one")
myArrayList.Add("two")
myArrayList.Add("three")
Dim mystring As String = CType(myArrayList.Item(0), String)
Response.Write(mystring)
Why not use just regular array of string in this case?  Again, in what
situation ArrayList is considered to be the best solution?


On Feb 3, 12:52 am, Cerebrus <[email protected]> wrote:
> Please be more specific... Do you want an example of the interaction
> between an Enumeration and an ArrayList or do you want examples of
> each in action separately ? Also, what information do you need that
> would differentiate from the samples you found on the web ?
>
> On Feb 2, 11:00 pm, john <[email protected]> wrote:
>
> > Hi there,
>
> > I was yesterday reviewing and re-reading my books, and came up with
> > this question.
> > I understand concept of enumeration and arraylist in .NET, but can
> > somebody provide me with a real business example of both enumeration
> > and arraylist?  I was trying to find something on the web, but all the
> > examples that I was able to find so far were very basic, just to
> > explain the idea of each concept.

Reply via email to