[Solved] Concatenating int and list in c# [closed]

If I understand you correctly, you want to add random number to every candidate key number. If that is the case try this. var candidatekey = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; var randomnumber=42; //we are using LINQ on list candidatekey=candidatekey.Select(c => c+randomnumber).ToList(); 1 solved Concatenating int and … Read more