Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Valuelist from Generic List of Valuelistitems
posted

Hi,

What do I ned to do to get a Valuelist Out of a List of (for Example Integer and String)?

If I create a Generic List of Valuelistitems like:

Dim mListOfItems = (from Items in mIntStringlist Select New Valulistitem with {.DataValue = Items.Value, .Displaytext = Items.DText}).tolist

I don't know how to get it into a Valuelist beside iterating for each item...

Is there a better way using linq?