The problem is here:
You are adding values each time when you are getting value.
It means it will add data in this order:
(1)
(1 1 2)
(1 1 1 2 2 2 3)
So use AddElement method.
The problem is here:
You are adding values each time when you are getting value.
It means it will add data in this order:
(1)
(1 1 2)
(1 1 1 2 2 2 3)
So use AddElement method.