【neuhawk】推薦一個好工具:Refactor! for ASP.NET 2.0

iDotNetSpace發表於2008-06-03
重構(Refactor),相信已經是大家常用的方法,自從vs2005支援重構後,用起來非常順手了.然而vss2005的重構功能畢竟還比較少.現向大家推薦一個由 Developer Express推出的免費VS add-on的重構工具Refactor! for ASP.NET.可以到 12-minute video overview先觀賞以下視訊,
目前能夠支援asp.net的重構:
  1. Add Validator
  2. Extract ContentPlaceHolder
  3. Extract ContentPlaceHolder (and create master page)
  4. Extract Style. (Class)
  5. Extract Style. (id)
  6. Move to Code-behind
  7. Move Style. Attributes to CSS
  8. Rename Style.
  9. Surround with Update Panel

同時也支援16種常用的重構方法

  1. Extract Method
  2. Extract Property
  3. Flatten Conditional
  4. Inline Temp
  5. Introduce Constant
  6. Introduce Local
  7. Move Declaration near Reference
  8. Move Initialization to Declaration
  9. Reorder Parameters
  10. Rename
  11. Replace Temp with Query
  12. Reverse Conditional
  13. Safe Rename
  14. Simplify Expression
  15. Split Initialization from Declaration
  16. Split Temporary Variable

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12639172/viewspace-330934/,如需轉載,請註明出處,否則將追究法律責任。

相關文章