Currently I need to interleave to strings into a singe list, yet am at a loss re how to do it.
The code I’m using currently is this (I haven’t gotten very far):
public PartialViewResult Interleave(string details, string ids)
{
List<string> detailList = details.Split(',').ToList();
List<string> idlist = ids.Split(',').ToList();
return PartialView("_ConceptDetail1", detailList)
}
Is there a standard way to interleave the lists?
Maybe you want to zip both together, you can use
Enumerable.Zipthen: