Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

string versus String !

I have a question (a little embarrassing because I see it so late), what is the difference between String and string ? not in the way that String is a Class and string is a reference type. But rather how to think about them in the term of uses.

 

I searched and find this piece of gold, but I don't know how to use it very well:

Use "String" to refer specifically to the String class.

Use "string" when referring to an object of the String class.

 

How to use them, accordingly?

thanks again.

  • Administrators
Posted (edited)

In a nutshell there is no difference. System.String is the underlying type specified by the .Net runtime (CLR) while string is just the C# keyword for the same thing.

 

Same way that int in C# is the same as Integer in VB.Net and both are really System.Int32 as far as the CLR is concerned.

Edited by PlausiblyDamp

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

look over this file and tell me how are you thinking in improve it !

I spend an entire night at it.

The idea is to have a MAP (on the paper) and rapidly look over it and "remember" what i must to put when I need it.

it's like a pocket reminder(a very tiny little map).

 

http://www.sendspace.com/file/p56n1r

 

of course in time must be the answer....if any...hope so... :)

thanks again.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...