Thursday, June 6, 2019

memory management - C# - Do I need to worry about if data is stored in the Stack or Heap?

I've gotten used to the memory management of C++ and having to consider if data should be stored in the Stack or Heap though coming back to C#, I'm a little confused on if this should really be a concern anymore.




I'm aware that C# uses a Garbage Collector but does that mean I still need to allocate data to either the Stack or Heap? I mainly ask this considering I'm using the new keyword a lot more then I would in C++

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...