Рассмотрим такую структуру:
struct ExampleStruct
{
public int ID;
public List children;
}
Создаст ли следующая строка кода объект в куче?
ExampleStruct exStrct = new Examplestruct() {ID = 5, children = null};
Подробнее здесь: https://stackoverflow.com/questions/792 ... allocation
Мобильная версия