#1
In C#, for example, the code
System.Console.WriteLine("Hello World");

Does this create a System.String object, with own copy of "Hello World" in
Unicode encoding, in the run-time heap?
Does the run-time access the #US stream (user-defined string heap) to look
for the particular string and make a copy of that user-defined string into
the System.String object?

#2
"System.String objects are created on demand for strings
literals."
In the built-in profiler in the Rotor, for example, when we display the
being-JITed-method's name onto the screen/log, will this create a
System.String object in the heap (to satisfy our request)? Or, will the
run-time simply access the #Strings (string heap) and display the
corresponding string literal?

Thank you beforehand.

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to