Je suis en train de le faire:C# concat deux Collection <string> LINQ et obtenir une collection <string> résultat
var collection1 = new Collection<string> {"one", "two"};
var collection2 = new Collection<string> {"three", "four"};
var result = collection1.Concat(collection2);
Mais la variable de résultat est de type Enumerable [System.String] , alors que je veux une collection [System.String]
J'ai essayé casting:
var all = (Collection<string>) collection1.Concat(collection2);
Mais pas de joie.