﻿---
title: csharp_wrap_before_first_method_call
description: When a chain breaks, break before the first call too, leaving the receiver on its own line. Defaults to `(not set)`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_wrap_before_first_method_call
---

# csharp_wrap_before_first_method_call
When a chain breaks, break before the first call too, leaving the receiver on its own line.

## Values


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

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

### `csharp_wrap_before_first_method_call = true`

```ini
csharp_wrap_before_first_method_call = true
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    using System.Text;

    namespace N;

    public class Widget
    {
        public string Build()
        {
            return new StringBuilder().Append("Hello").Append(", ").Append("World").Append("!").ToString();
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    using System.Text;

    namespace N;

    public class Widget
    {
        public string Build()
        {
            return new StringBuilder().Append("Hello").Append(", ").Append("World").Append("!").ToString();
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_wrap_before_first_method_call = false`

```ini
csharp_wrap_before_first_method_call = false
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    using System.Text;

    namespace N;

    public class Widget
    {
        public string Build()
        {
            return new StringBuilder().Append("Hello").Append(", ").Append("World").Append("!").ToString();
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    using System.Text;

    namespace N;

    public class Widget
    {
        public string Build()
        {
            return new StringBuilder().Append("Hello").Append(", ").Append("World").Append("!").ToString();
        }
    }
    ```
  </tab-item>
</tab-set>