RCS1066: Remove empty 'finally' clause
WARNING
This analyzer is obsolete. Use RCS1259 instead.
Properties
Property | Value |
---|---|
Default Severity | disabled 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)
{
}