title: Inline functions in C#?
body: <p>How do you do "inline functions" in C#? I don't think I understand the concept. Are they like anonymous methods? Like lambda functions?</p>
  
  <p><strong>Note</strong>: The answers almost entirely deal with the ability to <a href="http://en.wikipedia.org/wiki/Inline_expansion" rel="noreferrer">inline functions</a>, i.e. "a manual or compiler optimization that replaces a function call site with the body of the callee." If you are interested in <a href="http://en.wikipedia.org/wiki/Anonymous_function" rel="noreferrer">anonymous (a.k.a. lambda) functions</a>, see <a href="https://stackoverflow.com/a/473813/116891">@jalf's answer</a> or <a href="https://stackoverflow.com/questions/1085875/what-is-this-lambda-everyone-keeps-speaking-of/1086347#1086347">What is this &#39;Lambda&#39; everyone keeps speaking of?</a>.</p>