Program Structure

简介:   CLS: bool, byte, short, int, long, char, float, double, decimal, string, object Non-CLS:sbyte, ushort, uint, ulong   De...

 

CLS: bool, byte, short, int, long, char, float, double, decimal, string, object

Non-CLS:sbyte, ushort, uint, ulong

 

Default Value

bool b=new bool();//default value is "false"

int i=new int();//default value is "0"

double:0

DateTime: 1/1/0001 12:00:00 AM

 

System.Boolean

System.Char

System.String

Escape chars:

/'

/"

//

/a

/n

/r

/t

string s=@"...";

System.Text.StringBuilder

String.DateTime and System.TimeSpan

 

unchecked keyword

Byte b1=100;

Byte b2=250;

unchecked

{

Byte sum=(byte)(b1+b2);

Console.WriteLine("sum={0}",sum);

}

 

System.Convert

 

for, foreach, while, do/while, if/else, switch--case str: break; default: break;

目录
打赏
0
0
0
0
20
分享
相关文章
用IAR打开STM8时,出现“Unable to create configuration 'Debug' using tool chain ‘STM8’
用IAR打开STM8时,出现“Unable to create configuration 'Debug' using tool chain ‘STM8’
487 0
Crystallographic Information File
Crystallographic Information File(CIF)是一种用于存储晶体结构信息的标准文件格式,通常用于存储X射线衍射、中子衍射、电子衍射等晶体结构分析的数据。CIF文件包含了晶胞参数、原子坐标、晶体对称性等结构信息,是进行晶体结构分析和制备的基础数据。
603 1
STM32bug【 KEILMDK中出现The Project references devices, files or libraries that are not installed】
STM32bug【 KEILMDK中出现The Project references devices, files or libraries that are not installed】
316 0
gcc is unable to create an executable file.
gcc is unable to create an executable file.
492 0
cl.exe is unable to create an executable file
cl.exe is unable to create an executable file
143 0
cl.exe is unable to create an executable file. C compiler test failed.
cl.exe is unable to create an executable file. C compiler test failed.
226 0
编译OpenJDK:invalid configuration Files: machine Files not recognized
编译OpenJDK:invalid configuration Files: machine Files not recognized
132 0