惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 牛奶哥

C#点滴 - 深拷贝与浅拷贝 C#点滴 - 抽象类与接口区别 C#点滴 - ?与?? C#点滴 - 值类型与引用类型 C#点滴 - 类型转换 - 牛奶哥 C#点滴 - 关于String C#点滴 – CLR, CTS…等等基本概念 - 牛奶哥 SharePoint 2010 学习资料 初学SilverLight - (3)简单布局 - 牛奶哥 初学SilverLight - (2)第一个SilverLight程序 初学SilverLight - (1)开发环境准备 WCF热带鱼书学习手记 - Security (1) 概述 关于在SharePoint中管理大文件的一些想法 WCF热带鱼书学习手记 - Service Contract Overload - 牛奶哥 WCF热带鱼书学习手记 - client coding - 牛奶哥 WCF热带鱼书学习手记 - metadata WCF热带鱼书学习手记 - endpoint - 牛奶哥 WCF热带鱼书学习手记 - ABC - 牛奶哥 WCF热带鱼书学习手记 - Host Type - 牛奶哥
C#点滴 – 内建基本类型
牛奶哥 · 2010-03-26 · via 博客园 - 牛奶哥

C#的System命名 空间定义了可用于局部变量、成员变量,参数和返回值的基本类型。在C#中有相应的关键字相对应。

关键字

系统类型

范围

描述

bool

System.Boolean

true/false

表示逻辑真或者假

sbyte

System.SByte

-128~127

带符号8位数

byte

System.Byte

0~256

无符号的8位数

short

System.Int16

-32768~32767

带符号16位数

ushort

System.UInt16

0~65535

无符号16位数

int

System.Int32

-2147483648~

2147483647

带符号32位数

uint

System.UInt32

0~4294967295

无符号32位数

long

System.Int64

-9223372036854775808~

9223372036854775807

带符号64位数

ulong

System.UInt64

0~18446744073709551615

无符号64位数

char

System.Char

16位unicode字符

float

System.Single

32位单精度浮点数

double

System.Double

64位双精度浮点数

decimal

Decimal

128带符号数

string

System.String

表示一个unicode字符集合

object

System.Object

所有类型基类

基本类型除了string,object外,大多是Struct,也就是值类型,内存分配在栈上。