title: Get object from action
body: <p>I have a class that takes a Action on its constructor. I want the class field _options value to become the value of that action.</p>
  
  <p>I tried to use:</p>
  
  <pre><code>_options = options;
  </code></pre>
  
  <p>But this does not compile. The full code is:</p>
  
  <pre><code>public class PortableObjectTemplate {
  
    private PortableObjectTemplateOptions _options { get; set; }
  
    public PortableObjectTemplate(Action&lt;PortableObjectTemplateOptions&gt; options) {
      _options = options;
    }
  }
  </code></pre>
  
  <p>I am trying to be able to use this class as:</p>
  
  <pre><code>PortableObjectTemplate pot = new PortableObjectTemplate(x =&gt; {
    x.SearchPath = "/";
    x.BlackList = "*.cs";
  });
  </code></pre>
  
  <p>How can I do this?</p>