Authoritative info about strings in C#?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MC

    Authoritative info about strings in C#?

    Where (apart from making up a lot of examples and disassembling them myself) can I get authoritative information about how strings are handled in Microsoft C#? That is, when they are interned and when they're not, what they look like in memory, how related types such as StringBuilder are implemented, and so forth.
  • =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?=

    #2
    Re: Authoritative info about strings in C#?

    Dear MC,

    i am not sure if you are aware of the fact, that you
    can get the source code of the .NET Runtime and
    there are also free sources for e.g. Mono Project,
    where you can see, how these things are made up
    under the hood,...

    See here:





    Regards

    Kerem

    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Latest Project: http://www.codeplex.com/restarts
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."
    "MC" <for.address.lo ok@www.ai.uga.e du.slash.mcschr ieb im Newsbeitrag
    news:uyyC3iKIJH A.1936@TK2MSFTN GP06.phx.gbl...
    Where (apart from making up a lot of examples and disassembling them
    myself) can I get authoritative information about how strings are handled
    in Microsoft C#? That is, when they are interned and when they're not,
    what they look like in memory, how related types such as StringBuilder are
    implemented, and so forth.
    >

    Comment

    • Marc Gravell

      #3
      Re: Authoritative info about strings in C#?

      What they look look in memory? Possibly ECMA335 would give some hints
      (I haven't checked).
      When they are interned? Compiled literals, or when you ask it ;-p
      StringBuilder is an implementation detail, but as Kerem indicates, the
      source would tell you.

      Marc

      Comment

      • Pavel Minaev

        #4
        Re: Authoritative info about strings in C#?

        On Sep 27, 5:55 pm, "MC" <for.address.l. ..@www.ai.uga.e du.slash.mc>
        wrote:
        Where (apart from making up a lot of examples and disassembling them myself) can I get authoritative information about how strings are handled in Microsoft C#?  That is, when they are interned and when they're not, what they look like in memory, how related types such as StringBuilder are implemented, and so forth.
        Here's an article you might find interesting:


        Comment

        Working...