From f955ef3b653611c2c3edeed3f7e47489b2f93058 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Tue, 18 Apr 2023 02:40:57 +0000 Subject: [PATCH] doc: update cs.md (#346) * feat(cs.md): Fix logic * feat(cs.md): Fix show header in logic operator section. * fix(cs.md): the info from w3school is not correct. sizeof(bool) == 1, it is 1 byte, but not 1 bit. 486ebb19c1960536797864f2ed0d45efc5918b6c --- CONTRIBUTORS.svg | 38 +++++++++++++++++++------------------- docs/cs.html | 25 +++++++++++++++++-------- index.html | 9 ++++++--- 3 files changed, 42 insertions(+), 30 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index 24e1eae9..a3e0b46e 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -26,26 +26,26 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/cs.html b/docs/cs.html index 798a0895..182108d4 100644 --- a/docs/cs.html +++ b/docs/cs.html @@ -61,12 +61,20 @@

注释

// 单行注释
-/* 多行
-   注释 */
-// TODO:向 Visual Studio 中的任务列表添加注释
-/// 用于文档的单行注释
-/** 多行 注释 
-    用于文档 **/
+
+/* 
+ * 多行
+ * 注释 
+ */
+
+// TODO:向IDE中的任务列表添加注释(VS、Rider都支持)
+
+/// XML 单行注释,用于文档
+
+/**
+ * XML 多行注释,
+ *  用于文档 
+ */
 

字符串

string first = "John";
@@ -226,7 +234,7 @@
 
 
 
-
关键字名称System 别名占用空间数据范围
bool布尔型Boolean1true/false
sbyte有符号字节型SByte1-128 ~ 127
byte字节型Byte10 ~ 255
short短整型Int162-32,768 ~ 32,767
ushort无符号短整型UInt1620 ~ 65,535
int整型Int324-2,147,483,648 ~ 2,147,483,647
uint无符号整型UInt3240 ~ 4,294,967,295
long长整型Int648-2^63 ~ 2^63-1
ulong无符号长整型UInt6480 ~ 2^64-1
char字符型Char8UTF-16 所编码的字符
float单精度浮点型Single4±1.5x10^45 ~ ±3.4x10^38
double双精度浮点型Double8±5.0x10^-324 ~ ±1.7x10^308
N/A指针型IntPtr与指针相同与指针相同(受操作系统和处理器位宽影响)
N/A无符号指针型UIntPtr与指针相同与指针相同(受操作系统和处理器位宽影响)
+
关键字名称System 别名占用空间(Byte)数据范围
bool布尔型Boolean1true/false
sbyte有符号字节型SByte1-128 ~ 127
byte字节型Byte10 ~ 255
short短整型Int162-32,768 ~ 32,767
ushort无符号短整型UInt1620 ~ 65,535
int整型Int324-2,147,483,648 ~ 2,147,483,647
uint无符号整型UInt3240 ~ 4,294,967,295
long长整型Int648-2^63 ~ 2^63-1
ulong无符号长整型UInt6480 ~ 2^64-1
char字符型Char8UTF-16 所编码的字符
float单精度浮点型Single4±1.5x10^45 ~ ±3.4x10^38
double双精度浮点型Double8±5.0x10^-324 ~ ±1.7x10^308
nint指针型IntPtr与指针相同与指针相同(受操作系统和处理器位宽影响)
nuint无符号指针型UIntPtr与指针相同与指针相同(受操作系统和处理器位宽影响)

基本数据类型

@@ -477,7 +485,8 @@ -
xyx&yx|yx^y!x
truetruetruetruefalsefalse
truefalsefalsetruetruefalse
truenullnulltruenullfalse
falsetruefalsetruetruetrue
falsefalsefalsefalsefalsetrue
falsenullfalsenullnulltrue
nulltruenulltruenullnull
nullfalsefalsenullnullnull
nullnullnullnullnullnull
+
xyx & yx | yx ^ y! x
truetruetruetruefalsefalse
truefalsefalsetruetruefalse
truenullnulltruenullfalse
falsetruefalsetruetruetrue
falsefalsefalsefalsefalsetrue
falsenullfalsenullnulltrue
nulltruenulltruenullnull
nullfalsefalsenullnullnull
nullnullnullnullnullnull
+

杂项

常用 .NET 概念

diff --git a/index.html b/index.html index 39eeeb19..249e11ec 100644 --- a/index.html +++ b/index.html @@ -785,8 +785,8 @@ 小弟调调 - - fw_qaq + + fwqaaq mofelee @@ -926,6 +926,9 @@ Yan Li + + Yogurt + Zech @@ -1168,7 +1171,7 @@

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+