title: How can I write this in one line without duplicate dictionary name and key?
body: <p>how can I write this in c# (latest version) in <strong>one line without dublicate dictionary name and key</strong>:</p>
  <p><code>someDict[key] = someDict[key].MakeSomeChanges(1);</code></p>
  <p>I found something like that:</p>
  <p><code>_ = someDict[key].MakeSomeChanges(1);</code></p>
  <p>but unfortunately that not assign changed value.</p>
  <pre><code>public static int[] MakeSomeChanges(this int[] array, int a)
  {
      //some logic
      return x.ToArray();
  }
  </code></pre>
  <p>Any ideas?</p>