Example:
string place = "Hello World";It's generally recommended to use String if you need to refer specifically to the class.
Example:
var place = 'World!'Similarly for other datatypes,
string message = String.Format("Hello {0}!", place);
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