C#

C#

Made by DeepSource

Avoid inheriting outdated types CS-R1115

Anti-pattern
Critical

Certain types such as ApplicationException are outdated and should no longer be used as they can either be marked as obsolete or be dropped entirely in the future. It is therefore recommended that you use the prescribed replacement types instead.

Bad Practice

public class MyException : ApplicationException
{
}

Recommended

public class MyException : Exception
{
}