Loading

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
own_line
if_owner_is_single_line

Default: own_line

csharp_place_method_attribute_on_same_line = own_line
		
namespace N;

public class Widget
{
    [Obsolete]
    public void OldWay() { }

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

public class Widget
{
    [Obsolete]
    public void OldWay() { }

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

public class Widget
{
    [Obsolete]
    public void OldWay() { }

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

public class Widget
{
    [Obsolete] public void OldWay() { }

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