i trying figure out how create single concatenated list using c#, originating 3 separate lists. example:
list 1: ugly, pretty list 2: dogs, carts, pigs list 3: rock, suck output:
ugly dogs rock ugly dogs suck ugly cats rock ugly cats suck ugly pigs rock ugly pigs suck pretty dogs rock pretty dogs suck pretty cats rock pretty cats suck pretty pigs rock pretty pigs suck i know nested loops, part cant figure out how use list-strings each list.
var list = s1 in list1 s2 in list2 s3 in list3 select s1 + " " + s2 + " " + s3;
Comments
Post a Comment