I am writing this post as complementary to the following post where I explained some of the C# Memory Management…