csharp_new_line_before_finally
Put finally on its own line.
| Value | Notes |
|---|---|
true |
|
false |
Default: true
csharp_new_line_before_finally = true
namespace N;
public class Widget
{
public int Parse(string s)
{
try {
return int.Parse(s);
} catch (FormatException) {
return 0;
} finally {
Console.WriteLine("done");
}
}
}
namespace N;
public class Widget
{
public int Parse(string s)
{
try
{
return int.Parse(s);
}
catch (FormatException)
{
return 0;
}
finally
{
Console.WriteLine("done");
}
}
}
csharp_new_line_before_finally = false
namespace N;
public class Widget
{
public int Parse(string s)
{
try
{
return int.Parse(s);
}
catch (FormatException)
{
return 0;
}
finally
{
Console.WriteLine("done");
}
}
}
namespace N;
public class Widget
{
public int Parse(string s)
{
try
{
return int.Parse(s);
}
catch (FormatException)
{
return 0;
} finally
{
Console.WriteLine("done");
}
}
}