Published on2023年8月18日如果 lock 的區塊發生 exception 之後,會不會 unlock c#如果 lock 的區塊發生 exception 之後,會不會 unlock ?
Published on2022年11月13日C# Dictionary 的 Key 使用 Enum 會不會有 Boxing 的效能問題 ? c#看到在其它的 blog 中有留言說:如果 C# 的 Dictionary 的 Key 使用 Enum 型別的話,會有 Boxing/Unboxing 的效能問題,引起了我的好奇,用了這麼久的方式,到底會不會有問題
Published on2022年9月17日DevOpsDays Taipei 2022 event這是參加 DevOpsDays Taipei 2022 一些議程的心得。另外這次拿到的報到序號是 777 XD
Published on2022年8月13日C# StreamWriter write file line by line c#因為要寫一個小工具需要逐行寫入檔案,突然想到之前有寫過兩篇文章 C# - Simple StreamWriter and StreamReader 和 C# - Simple FileStream Write and Read,結果好像沒有逐行寫檔的程式碼,簡單的記錄一下使用 StreamWriter 來逐行寫檔
Published on2022年8月6日Rider EditorConfig csharp_new_line_before_members_in_object_initializers editorconfigrider在上一篇 Rider 啟用 EditorConfig 中有提到一個神奇的設定,現在就要來講這個設定的神奇行為 csharp_new_line_before_members_in_object_initializers
Published on2022年7月31日Rider Enable EditorConfig editorconfigrider在 Rider 裡面要統一團隊的 Code Style,把設定檔變成 team share 是一個方式 (或是給其它人匯入規範的檔案),不過我發現最快的方式,就是直接在 Rider 啟用 EditorConfig 然後把 Code Style 寫在裡面