This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
HttpMethods as const string rather than static readonly string #795
When I am trying to use
AcceptVerbsAttribute, I don't want to write verbs literally (e.g.[AcceptVerbs("GET", "POST")]) so I try to reuse the verbs defined inHttpMethods(e.g.[AcceptVerbs(HttpMethods.Get, HttpMethods.Post)]). But this is not acceptable by compiler.How about making verbs in
HttpMethodsasconst stringrather thanstatic readonly stringso that they can be more widely used?