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.

Ini
max_line_length = 80
csharp_wrap_chained_binary_expressions = chop_if_long
csharp_wrap_before_binary_opsign = true
C#
namespace N;

public class Widget
{
    public bool IsValid(string name, int count)
    {
        return name.Length > 0 && count > 0 && count < 100 && name != "none" && name != "all";
    }
}
C#
namespace N;

public class Widget
{
    public bool IsValid(string name, int count)
    {
        return name.Length > 0
            && count > 0
            && count < 100
            && name != "none"
            && name != "all";
    }
}
Ini
max_line_length = 80
csharp_wrap_chained_binary_expressions = chop_if_long
csharp_wrap_before_binary_opsign = false
C#
namespace N;

public class Widget
{
    public bool IsValid(string name, int count)
    {
        return name.Length > 0
            && count > 0
            && count < 100
            && name != "none"
            && name != "all";
    }
}
C#
namespace N;

public class Widget
{
    public bool IsValid(string name, int count)
    {
        return name.Length > 0 &&
            count > 0 &&
            count < 100 &&
            name != "none" &&
            name != "all";
    }
}