Skip to main content

RCS1066: Remove empty 'finally' clause

WARNING

This analyzer is obsolete. Use RCS1259 instead.

Properties​

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples​

Example #1​

diagnostic.cs
try
{
Foo();
}
finally
{
}
fix.cs
Foo();

Example #2​

diagnostic.cs
try
{
Foo();
}
catch (Exception ex)
{
}
finally
{
}
fix.cs
try
{
Foo();
}
catch (Exception ex)
{
}

Applies to​