Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String or string [duplicate]

Tags:

c#

.net

Possible Duplicate:
In C# what is the difference between String and string

what's the difference between the String and string. In C#, which is preferred?

like image 906
user496949 Avatar asked Nov 16 '10 05:11

user496949


People also ask

What is duplicate string?

To find the duplicate character from the string, we count the occurrence of each character in the string. If count is greater than 1, it implies that a character has a duplicate entry in the string. In above example, the characters highlighted in green are duplicate characters.

Which string function duplicates a string?

The C library function to copy a string is strcpy(), which (I'm guessing) stands for string copy. Here's the format: char * strcpy(char * dst, const char * src);

What is duplicate string in Java?

The duplicate characters in a string are those that occur more than once. These characters can be found using a nested for loop. An example of this is given as follows − String = Apple. In the above string, p is a duplicate character as it occurs more than once.


1 Answers

Actually string is an alias for System.String but erash is basically right...

Here is a list of other alias' shamelessly lifted from Jon Skeet in this post:

* object: System.Object
* string: System.String
* bool: System.Boolean
* byte: System.Byte
* sbyte: System.SByte
* short: System.Int16
* ushort: System.UInt16
* int: System.Int32
* uint: System.UInt32
* long: System.Int64
* ulong: System.UInt64
* float: System.Single
* double: System.Double
* decimal: System.Decimal
* char: System.Char
like image 134
Abe Miessler Avatar answered Nov 05 '22 13:11

Abe Miessler