Before starting with best practices tobe followed, it is good to have clear understanding of how memory is managed (allocation, de-allocation). So, let us start with memory management first. Managed Heap and Garbage Collection Overview Memory Allocat…