﻿---
title: csharp_wrap_chained_method_calls
description: Break a chain of three or more calls onto its own line per call once it does not fit. Curb's default behaviour either way; setting the key only makes it explicit. Defaults to `chop_if_long`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_wrap_chained_method_calls
---

# csharp_wrap_chained_method_calls
Break a chain of three or more calls onto its own line per call once it does not fit. Curb's default behaviour either way; setting the key only makes it explicit.

## Values


| Value          | Notes |
|----------------|-------|
| `chop_if_long` |       |

**Default:** `chop_if_long`

### `csharp_wrap_chained_method_calls = chop_if_long`

```ini
csharp_wrap_chained_method_calls = chop_if_long
```

<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>