String

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

    String

    Howcome C# has string and String data types? Are they the same type?
    --
    Arne Garvander
    (I program VB.Net for fun and C# to get paid.)
  • Jon Skeet [C# MVP]

    #2
    Re: String

    Arne Garvander <ArneGarvander@ discussions.mic rosoft.comwrote :
    Howcome C# has string and String data types? Are they the same type?
    Yes. "string" is just a shorthand for "System.String" .

    --
    Jon Skeet - <skeet@pobox.co m>
    http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
    If replying to the group, please do not mail me too

    Comment

    • Michael A. Covington

      #3
      Re: String


      "Jon Skeet [C# MVP]" <skeet@pobox.co mwrote in message
      news:MPG.1f825c 53fd8757be98d4c 6@msnews.micros oft.com...
      Arne Garvander <ArneGarvander@ discussions.mic rosoft.comwrote :
      >Howcome C# has string and String data types? Are they the same type?
      >
      Yes. "string" is just a shorthand for "System.String" .
      To elaborate a little: The C# language has names for some commonly used
      types. The .NET Framework has its own names for all of those, plus a lot
      more. "string" is C# and "System.Str ing" is .NET Framework. Both names are
      usable in C# programs.


      Comment

      Working...