I have a Class:
public class Element
{
public List<object> objects { get; set; }
}
And a Class:
public class Node
{
public long id { get; set; }
}
I pass in a List<object> nodes. So is there any way I can convert those List<object> objects to List<Node> nodes?
I tried this way but it doesn't work
List<Node> nodes = objects.Select(s => (nodes)s).ToList();