Andy's blog

If you always do what you've always done, you'll always get what you've always got.

0%

2020-11-03-六角C#筆記

紀錄六角直播內容


參考資料:
從零開始學Visual C#2015程式設計
C# @符號(小老鼠)的用處
T006_20201105_六角學院_C#的Type和Operator


  1. 跳脫字元 \
    1
    2
    3
    string a = "\"AAA\""; //"AAA"
    string path = "D:\\AA\\B"; // D:\AA\B
    string path1 = @"C\Logo\index.html"; // C\Logo\index.html

2.Null 型別

1
2
bool? c = null;
int? a = null;

任何型別後面加入?,可以為null