Char 為 16 位元 Unicode 碼值。常數欄位 Char.MinValue = '\0'、Char.MaxValue = '\uffff'。Char.GetUnicodeCategory() 回傳字元分類(貨幣/標點/數學符號等)。Char 與 Int32 可互轉。
String s = "Jax"; 不能用 new 建立。IL 中為 ldstr 而非 newobj,因字串為常數、不可變。+ 運算子連接字串於編譯期完成,產生單一常數。執行期連接請用 StringBuilder。@"XXX"。String.Compare 或 String.Equals。ToUpper() 而非 ToLower()(效能較佳)。System.Intern(),一般不建議使用。內部擁有 Char 陣列欄位,操作即操作此陣列;ToString() 返回由字元陣列組成的字串。超過容量時配置更大陣列、複製字元、舊陣列交由 GC 回收。
靜態 Parse() 方法為工廠模式,FCL 所有數值類型/DateTime/TimeSpan 均提供。例:Int32 x = Int32.Parse("123");