csharp_wrap_before_binary_opsign
When a binary chain breaks, start the new line with the operator.
| Value | Notes |
|---|---|
true |
|
false |
Default: true
No known case where Curb's output is not a fixed point of dotnet format — see conformance.
max_line_length = 80
csharp_wrap_chained_binary_expressions = chop_if_long
csharp_wrap_before_binary_opsign = true
namespace N;
public class Widget
{
public bool IsValid(string name, int count)
{
return name.Length > 0 && count > 0 && count < 100 && name != "none" && name != "all";
}
}
namespace N;
public class Widget
{
public bool IsValid(string name, int count)
{
return name.Length > 0
&& count > 0
&& count < 100
&& name != "none"
&& name != "all";
}
}
max_line_length = 80
csharp_wrap_chained_binary_expressions = chop_if_long
csharp_wrap_before_binary_opsign = false
namespace N;
public class Widget
{
public bool IsValid(string name, int count)
{
return name.Length > 0
&& count > 0
&& count < 100
&& name != "none"
&& name != "all";
}
}
namespace N;
public class Widget
{
public bool IsValid(string name, int count)
{
return name.Length > 0 &&
count > 0 &&
count < 100 &&
name != "none" &&
name != "all";
}
}