﻿---
title: csharp_place_event_attribute_on_same_line
description: Where an event's attribute section goes. Defaults to `own_line`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_place_event_attribute_on_same_line
---

# csharp_place_event_attribute_on_same_line
Where an event's attribute section goes.

## Values


| Value                     | Notes |
|---------------------------|-------|
| `own_line`                |       |
| `if_owner_is_single_line` |       |

**Default:** `own_line`

### `csharp_place_event_attribute_on_same_line = own_line`

```ini
csharp_place_event_attribute_on_same_line = own_line
```

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

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

        [Obsolete("use NewWay")]
        public string OldName { get; set; } = "";
    }
    ```
  </tab-item>

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

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

        [Obsolete("use NewWay")]
        public string OldName { get; set; } = "";
    }
    ```
  </tab-item>
</tab-set>


### `csharp_place_event_attribute_on_same_line = if_owner_is_single_line`

```ini
csharp_place_event_attribute_on_same_line = if_owner_is_single_line
```

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

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

        [Obsolete("use NewWay")]
        public string OldName { get; set; } = "";
    }
    ```
  </tab-item>

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

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

        [Obsolete("use NewWay")]
        public string OldName { get; set; } = "";
    }
    ```
  </tab-item>
</tab-set>