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