C# does not like pointers, but I need to use them now to create a linked list, like we would do in C. The struct is simple:
public unsafe struct Livro
{
public string name;
public Livro* next;
}
But I get the error: "Cannot take the address of, get the size of, or declare a pointer to a managed type". Any ideas?
List<string>?LinkedList<T>if you want a linked list ;)List<T>is backed by Array.LinkedList<T>is truly double-linked list.