Friday 19 July 2019

String Constant Memory pool in C#

Everybody knows that in .Net framework String objects are directly stored in heap memory



I am just trying to understand if there is any reserved memory in .Net framework for Strings. In java there is a reserved memory for strings called SCMP(String Constant Memory Pool) where strings are initialized and garbage collected just like other objects in heap memory.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...