title: How to get class property name with spaces?
body: <p>I have a class:</p>
  
  <pre><code>MyClass
  {
     public int Id{set;get;}
     public string MollName{set;get;}
     public string MollAddress{set;get;}
     public string MollPRG{set;get;}
  }
  </code></pre>
  
  <p>i use it for generate report in Excel. I makw a whole document programaticaly so i no have any templates.<br>
  For make a report's columns names i use:</p>
  
  <pre><code>var fields = typeof(MyClass).GetFields(
              BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
  var names = Array.ConvertAll(fields, field =&gt; field.Name).ToList();
  
  var trimedNames = names.Select(name =&gt; name.Substring(1, name.IndexOf("&gt;", StringComparison.Ordinal) - 1)).ToList();
  foreach (var fieldName in trimedNames)
  {
  //**some code
  }
  </code></pre>
  
  <p>And i get report with column names:</p>
  
  <pre><code>Id
  MollName
  MollAddress
  MollPRG
  </code></pre>
  
  <p>How can i get it with spaces?:</p>
  
  <pre><code>Id
  Moll Name
  Moll Address
  Moll PRG
  </code></pre>