方法可以靜態化,但應該這樣嗎? - Method can be made static, but should it?

問題:

ReSharper likes to point out multiple functions per ASP.NET page that could be made static. ReSharper 喜歡指出每個 ASP.NET 頁面的多個可以靜態化的功能。 Does it help me if I do make them static?如果我確實讓它們靜態,它對我有幫助嗎? Should I make them static and move them to a utility class?我應該讓它們靜態並將它們移動到實用程序類嗎?


解決方案:

參考一: https://stackoom.com/question/i3u
參考二: Method can be made static, but should it?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章