How can I avoid magic strings for views' names and paths?

后端 未结 0 1536
一个人的身影
一个人的身影 2021-02-05 15:36

If I call a controller or class anywhere in the project, I just use the namespace and filename:

string vc = nameof(MyProject.Controllers.MySillyController)


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题