ReSharper 2024.1 Help

Code Inspection: Function never returns

Category

Potential Code Quality Issues

ID

FunctionNeverReturns

EditorConfig

resharper_function_never_returns_highlighting

Default severity

Warning

Language

C#, VB.NET

Requires SWA

No

This message is issued if a method contains an infinite loop and does not return control. Although infinite loops are useful for some tasks, in application software they generally cause errors. If you do not need an endless loop, consider rewriting the code.

Last modified: 15 April 2024