Jump to content

Is Storing Structure instance better than storing class instance in Session


siri

Recommended Posts

You most likely should use classes. Structs are intended to only hold small amounts of data.Also if you are going to be passing the Structs through any functions then copies (increasing memory use) will be made because Structs are immutable and pass by value while classes are mutable and pass by reference.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...