S
shapper
Hello,
I have an Enum and a Generic.List(Of Enum)
1 Public Enum Mode
2 Count
3 Day
4 Month
5 End Enum
How can I loop, in the generic list, from the last item that was added
to the first item that was added and remove the duplicated values.
For example, if I add the following items:
1 Dim gl As New Generic.List(Of Mode)
2 gl.Add(Mode.Count)
3 gl.Add(Mode.Month)
4 gl.Add(Mode.Day)
5 gl.Add(Mode.Count)
6 gl.Add(Mode.Day)
I want to remove the items added in 5 and 6 because they are repeated
and they were added last.
Thanks,
Miguel
I have an Enum and a Generic.List(Of Enum)
1 Public Enum Mode
2 Count
3 Day
4 Month
5 End Enum
How can I loop, in the generic list, from the last item that was added
to the first item that was added and remove the duplicated values.
For example, if I add the following items:
1 Dim gl As New Generic.List(Of Mode)
2 gl.Add(Mode.Count)
3 gl.Add(Mode.Month)
4 gl.Add(Mode.Day)
5 gl.Add(Mode.Count)
6 gl.Add(Mode.Day)
I want to remove the items added in 5 and 6 because they are repeated
and they were added last.
Thanks,
Miguel