I have a question on Union and Concat. I guess both are behaving same in case of List<T> .
var a1 = (new[] { 1, 2 }).Union(new[] { 1, 2 }); // O/P : 1 2
var a2 = (new[] { 1, 2 }).Concat(new[] { 1, 2 }); // O/P : 1 2 1 2
var a3 = (new[] { "1", "2" }).Union(new[] { "1", "2" }); // O/P : "1" "2"
var a4 = (new[] { "1", "2" …Run Code Online (Sandbox Code Playgroud) 我有两个清单.BeamElevations<Elevation>和FloorElevations<Elevation>.如何将这些合并到Elevations<Elevation>列表中并根据他们使用Linq的Elevation进行排序?