Friday 27 December 2019

difference between String and string in C#?

1- technically, there is no difference.
2- string is an alias for System.String
3- others alias are as follows
   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

No comments:

Post a Comment