csharp_place_method_attribute_on_same_line

Where a method's attribute section goes. if_owner_is_single_line joins it when the method fits on one line. Deterministic mode only.

Value Notes
false
if_owner_is_single_line

Default: false

No known case where Curb's output is not a fixed point of dotnet format — see conformance.

Ini
max_line_length = 80
csharp_place_method_attribute_on_same_line = false
C#
namespace N;

public class Widget
{
    [Obsolete]
    public void OldWay() => Console.WriteLine("old");

    [Obsolete("use NewWay")]
    public string OldName { get; set; } = "";
}
C#
namespace N;

public class Widget
{
    [Obsolete]
    public void OldWay() => Console.WriteLine("old");

    [Obsolete("use NewWay")]
    public string OldName { get; set; } = "";
}
Ini
max_line_length = 80
csharp_place_method_attribute_on_same_line = if_owner_is_single_line
C#
namespace N;

public class Widget
{
    [Obsolete]
    public void OldWay() => Console.WriteLine("old");

    [Obsolete("use NewWay")]
    public string OldName { get; set; } = "";
}
C#
namespace N;

public class Widget
{
    [Obsolete] public void OldWay() => Console.WriteLine("old");

    [Obsolete("use NewWay")]
    public string OldName { get; set; } = "";
}