title: How to add an Object as an Excel row using C#
body: <p>I have a class say for instance - Member which looks like </p>
  
  <pre><code>class Member
  {
      public string Id { get; set; }
      public string Login { get; set; }
      public string AddDate { get; set; }
      public string FirstName{ get; set; }
      public string LastName{ get; set; }
      public string FullName { get; set; }            
  }
  </code></pre>
  
  <p>Now I need to insert and Object of Member as a Row into an Excel sheet. I am using <code>Microsoft.Office.Interop</code> and have a WorkSheet object by using the code below:</p>
  
  <pre><code>Excel.Application xlApp = new Excel.Application();
  xlApp.Visible = true;
  Excel.Workbook xlWorkBook = xlApp.Workbooks.Add(XlWBATemplate.xlWBATWorksheet);
  Excel.Worksheet xlWorkSheet = (Worksheet)xlWorkBook.Worksheets[1];
  </code></pre>
  
  <p>My final output should look like 
  <a href="https://i.stack.imgur.com/etcVM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/etcVM.jpg" alt="enter image description here"></a></p>