-1

IDと名前の場所のリストがあります

public class Dim_Location
{
    public int ID{ get; set; }
    public string LocationName{ get; set; }
    public string ClienId{ get; set; }
}  

private List<string> loadLocation(int clientIdx)
{
    List<Dim_Location> LocationList = dim_Location.GetLocation(clientIdx);
      //Combine here List<ID+";"+LocationName> and make List<string>
}

今私はから取得List<ID+";"+LocationName>したいLocationList

4

1 に答える 1

2
var result = LocationList.Select(x => x.ID + ";" + x.LocationName);
于 2013-05-16T21:09:59.867 に答える