ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspection: Method invocation is skipped

Last modified: 11 February 2024

While coding, you may encounter warnings regarding methods whose invocations will not be generated by the compiler. Why would that be? Typical cases are conditional methods that will not be compiled (for example, it’s marked with [Conditional("DEBUG")] and you are in the RELEASE mode). Another reason why a method may be skipped is that, at some point, its body has been declared as partial and the implementation was not provided.