So my company has started using StyleCop to enforce some coding standards and consistency and I have a question about 1 of the rules:
Rule SA1101 (Prefix local calls with this) throws a warning even on return lines such as: return View("~/Views/Shared/Error.cshtml");
I am not sure what the purpose of having this.View(...)
really is? Am I missing something here?
Moreover, does anyone have a custom rule I could implement that enforces the "Prefix local calls with this" logic but not in return...
statements?
Thanks