csharp_new_line_before_members_in_object_initializers
Put each member of an object initializer on its own line.
| Value | Notes |
|---|---|
true |
|
false |
Leaves the members where they were written. It doesn't join them onto one line, and neither does dotnet format. |
Default: true
No known case where Curb's output is not a fixed point of dotnet format — see conformance.
csharp_new_line_before_members_in_object_initializers = true
namespace N;
public class Point { public int X; public int Y; public int Z; }
public class Widget
{
public Point Make() => new Point
{
X = 1, Y = 2,
Z = 3,
};
}
namespace N;
public class Point { public int X; public int Y; public int Z; }
public class Widget
{
public Point Make() => new Point
{
X = 1,
Y = 2,
Z = 3,
};
}
csharp_new_line_before_members_in_object_initializers = false
namespace N;
public class Point { public int X; public int Y; public int Z; }
public class Widget
{
public Point Make() => new Point
{
X = 1, Y = 2,
Z = 3,
};
}
namespace N;
public class Point { public int X; public int Y; public int Z; }
public class Widget
{
public Point Make() => new Point
{
X = 1, Y = 2,
Z = 3,
};
}