I have a string value
string str1 = "1,2"
and a Long List
List
I want to add this string value to List,without using loop,how this could be done? please do let me know about the same
I have a string value
string str1 = "1,2"
and a Long List
List
I want to add this string value to List,without using loop,how this could be done? please do let me know about the same
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muhammad Imran AnsariPosted May 6, 2022, 10:58 AM
Jignesh KumarPosted May 6, 2022, 9:03 AM
Sachin SinghPosted May 6, 2022, 8:50 AM
Jignesh KumarPosted May 6, 2022, 8:47 AM
Hi Aniket,
You can achieve this using string split and convert ot list,
if you wish to create list of string then you can do like below
or
If you wish to conver list of long values then you can do below
Sachin SinghPosted May 6, 2022, 6:47 AM