3
Answers

How to get collection into string variable ?

Mangesh barmate

Mangesh barmate

11y
1.3k
1

Hi,

I have a LINQ collection.I want to take all values from collection and set into string variable.

My scenario is-->

Foreach(var riderId in SalesPlan.Riders)

{

  string str= 101,102,103; //This is riderId coming from salePlan.riders

//  This str will fill from collection, var riderId

}

Answers (3)