﻿---
title: csharp_empty_block_style
description: How an empty method, constructor, accessor or control-flow body is laid out. together_same_line keeps { } on the signature's line. Defaults to `(not set)`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_empty_block_style
---

# csharp_empty_block_style
How an empty method, constructor, accessor or control-flow body is laid out. together_same_line keeps { } on the signature's line.

## Values


| Value                | Notes |
|----------------------|-------|
| `multiline`          |       |
| `together`           |       |
| `together_same_line` |       |

**Default:** `(not set)`

### `csharp_empty_block_style = multiline`

```ini
csharp_empty_block_style = multiline
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
        public int X { get; set; }
        public string Name { get; set; } = "";
        public void Empty() { }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
        public int X { get; set; }
        public string Name { get; set; } = "";
        public void Empty()
        {
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_empty_block_style = together`

```ini
csharp_empty_block_style = together
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
        public int X { get; set; }
        public string Name { get; set; } = "";
        public void Empty() { }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
        public int X { get; set; }
        public string Name { get; set; } = "";
        public void Empty()
        { }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_empty_block_style = together_same_line`

```ini
csharp_empty_block_style = together_same_line
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
        public int X { get; set; }
        public string Name { get; set; } = "";
        public void Empty() { }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
        public int X { get; set; }
        public string Name { get; set; } = "";
        public void Empty() { }
    }
    ```
  </tab-item>
</tab-set>