Best way to get rid of hungarian notation?

前端 未结 20 1144
萌比男神i
萌比男神i 2021-01-18 20:52

Let\'s say you\'ve inherited a C# codebase that uses one class with 200 static methods to provide core functionality (such as database lookups). Of the many nightmares in th

20条回答
  •  时光说笑
    2021-01-18 21:07

    If you have a legitimate need to remove and change it I would use either the built in refactoring tools, or something like Resharper.

    However, I would agree with Chris Conway to a certain standpoint and ask you WHY, yes, it is annoying, but at the same time, a lot of the time the "if it aint't broke done't fix it" method is really the best way to go!

提交回复
热议问题