Okay, I'm teaching myself C# and now I have a question about pointers.
When if I declare a new object, do I need to delete it? Or does garbage collection take care of that too. It seems a little odd to declare a peace of code “unsafe” if it's perfectly safe.
If it is possible to manually deallocate, how do I do it?
When if I declare a new object, do I need to delete it? Or does garbage collection take care of that too. It seems a little odd to declare a peace of code “unsafe” if it's perfectly safe.
If it is possible to manually deallocate, how do I do it?
Comment