﻿---
title: csharp_place_simple_accessorholder_on_single_line
description: Allow { get; set; } to stay on the property's line. Defaults to `true`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_place_simple_accessorholder_on_single_line
---

# csharp_place_simple_accessorholder_on_single_line
Allow { get; set; } to stay on the property's line.

## Values


| Value   | Notes |
|---------|-------|
| `true`  |       |
| `false` |       |

**Default:** `true`

### `csharp_place_simple_accessorholder_on_single_line = true`

```ini
csharp_place_simple_accessorholder_on_single_line = true
```

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

    public class Widget
    {
        public int X
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }
    }
    ```
  </tab-item>

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

    public class Widget
    {
        public int X { get; set; }

        public string Name { get; set; }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_place_simple_accessorholder_on_single_line = false`

```ini
csharp_place_simple_accessorholder_on_single_line = false
```

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

    public class Widget
    {
        public int X { get; set; }

        public string Name { get; set; }
    }
    ```
  </tab-item>

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

    public class Widget
    {
        public int X
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }
    }
    ```
  </tab-item>
</tab-set>