title: How to make inline functions in C#
body: <p>I'm using Linq To XML</p>
  
  <pre><code>new XElement("Prefix", Prefix == null ? "" : Prefix)
  </code></pre>
  
  <p>but I want to do some computation to the prefix before adding it to the xml, like eliminating spaces, special chars, some calculations etc </p>
  
  <p>I don't want to create functions because this ones won't be of any help on any other part of my program but this, so is there any way to create inline functions??</p>