C# - const vs static readonly

-- Pageviews

C# - const vs static readonly - .NET Reflector

偶而遇到有人問 conststatic readonly 有什麼差別,如果是使用基本型別或字串,可能會感覺差不多。
大部分的人都會回答是賦予值的階段不同,const 是編譯時賦予值,static readonly 是執行時賦予值。
本篇將介紹 conststatic readonly 的差異。

VS Code - 撰寫及執行 Groovy

-- Pageviews

VS Code - 撰寫及執行 Groovy - 安裝 Code Runner

最近在改寫 Jenkins 的 Pipeline Job,要寫一些 Groovy 的擴充方法讓 Pipeline Job 呼叫,但在 Jenkins 上面寫 Groovy 不是很方便。
本篇介紹如何在 Visual Studio Code 安裝 VS Code Extensions,方便撰寫及執行 Groovy。