'Convert var into list

var result = nomidb.Where(x => !listnamedataset.Contains(x.nome)).ToList();

i want to put all elements into a public list<nomierrati>nomisbagliati. nomierrati is a class with properties id and nome. How can i put all elements in var result into nomisbagliati?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source