csharp_wrap_before_arrow_with_expressions
When an expression body wraps, put => at the start of the new line.
| Value | Notes |
|---|---|
true |
|
false |
Default: false
No known case where Curb's output is not a fixed point of dotnet format — see conformance.
max_line_length = 80
csharp_wrap_before_arrow_with_expressions = true
namespace N;
public class Widget
{
public int Value { get; set; }
public string Describe() =>
$"Widget {Value} of {Value * 2}, built by the widget factory";
}
namespace N;
public class Widget
{
public int Value { get; set; }
public string Describe()
=> $"Widget {Value} of {Value * 2}, built by the widget factory";
}
max_line_length = 80
csharp_wrap_before_arrow_with_expressions = false
namespace N;
public class Widget
{
public int Value { get; set; }
public string Describe() => $"Widget {Value} of {Value * 2}, built by the widget factory";
}
namespace N;
public class Widget
{
public int Value { get; set; }
public string Describe() =>
$"Widget {Value} of {Value * 2}, built by the widget factory";
}