title: Dynamic DTO from nhibernate projections criteria
body: <p>I have a projection List in my c# code :</p>
  
  <pre><code>var criteria = DetachedCriteria.For(this.modelType);
  
           for (int i = 0; i &lt; this.fields.Length; i++)
              projections.Add(Projections.Property(this.fields[i]));
  
          if (fields.Length &gt; 0)
              criteria.SetProjection(projections);
  </code></pre>
  
  <p>if I don´t set any field in my projection my return is follow:</p>
  
  <p><a href="https://i.stack.imgur.com/haTkJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/haTkJ.png" alt="enter image description here"></a></p>
  
  <p>but if I set projections in my code, my result is follow:</p>
  
  <p><a href="https://i.stack.imgur.com/SCWFX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SCWFX.png" alt="enter image description here"></a></p>
  
  <p>How can I convert the list with projections in a Dynamic DTO object?</p>