I just have a general .NET inquiry:
Suppose I have a large (memory size) Class
public class BigClass { ... }
If I add an item to an ItemControl such as a ListBox or Datagrid like this
BigClass b = new BigClass(); ListBox1.Items.Add(b);
How is the resource usage in doing something like this? Is the added item referenced or is a copy made of the instance (causing a lot of memory usage)?
Thanks.
It will be added as a reference. There are no implicit copy semantics for .NET objects.