📅  最后修改于: 2022-03-11 14:49:06.841000             🧑  作者: Mango
There are many ways to do that, I think there are two you should consider:
You can use Cast and ToList, but it will require using System.Linq.
var listOfStrings = new List() { "foo", "bar" };
var listOfObjects = listOfStrings.Cast