Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Global.Application_Start() : Global.Application_Start()

$
0
0

It's an MVC 4.5 C# application and client's requirment is to remove following suppression:

 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = "Historical codebase. Will be fixed at a later date.")]

If I remove suppression, I get following error

CA1822 Mark members as static
The 'this' parameter (or 'Me' in Visual Basic) of 'Global.Application_Start()' is never used. Mark the member as static (or Shared in Visual Basic) or use 'this'/'Me' in the method body or at least one property accessor, if appropriate.
Global.asax.cs (Line 105)

I am not able to find any solution for it


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>