What is the difference between the string and String

Posted by balajirnaukri-12656 under ASP.NET on 4/30/2012 | Points: 10 | Views : 1672 | Status : [Member] | Replies : 6
I have seen two string datatype one with lower case and other with upper case.what is the exact difference between them?????????

Thanks and Regards
Balaji.R
ASP.NET Devloper
Solve-IT corp



Responses

Posted by: Funda on: 4/30/2012 [Member] Starter | Points: 25

Up
0
Down
Nothing really,
In C# the type keywords actually are equivalent for the types.
Example :
int = System.Int32
short = System.Int16
string = System.String.
They have the keywords because they are easier to remember and programmers coming from other languages would also be familiar with these types.

Answer for your question
string is an alias for String in the .NET Framework.
Strings are immutable--the contents of a string object cannot be changed after the object is created.

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Funda on: 4/30/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
String.Split() can also use in string.Also nothing cause when you use static methods with string /String.

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 4/30/2012 [Member] Bronze | Points: 25

Up
0
Down
@Vivian .......good answer


Thanks and Regards
Akiii

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Funda on: 5/8/2012 [Member] Starter | Points: 25

Up
0
Down
:-)

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Funda on: 5/11/2012 [Member] Starter | Points: 25

Up
0
Down
Hi, @Akiii
Please Mark As Answer.If it helps you.

Regards
Funda...




balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 5/11/2012 [Member] Bronze | Points: 25

Up
0
Down
hello funda ..this question is asked by Balaji......

Akiii

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response