Ich versuche, dies zu tun:C# concat zwei Sammlung <string> mit Linq und bekommen eine Sammlung <string> Ergebnis
var collection1 = new Collection<string> {"one", "two"};
var collection2 = new Collection<string> {"three", "four"};
var result = collection1.Concat(collection2);
Aber das Ergebnis Variable ist Enumerable [System.String] geben, während ich eine Sammlung wollen [System.String]
ich habe versucht, Casting:
var all = (Collection<string>) collection1.Concat(collection2);
aber keine Freude.