I am trying to understand string interning and why is doesn\'t seem to work in my example. The point of the example is to show Example 1 uses less (a lot less memory) as it
From the msdn Second, to intern a string, you must first create the string. The memory used by the String object must still be allocated, even though the memory will eventually be garbage collected.