title: XML Deserialize with same element name and different attributes​ name
body: <p>I want to deseralize following XML in C#</p>
  
  <pre><code>&lt;Test&gt;
  &lt;Testdata&gt;
  &lt;abc name = "fname"&gt; Test&lt;/abc&gt;
  &lt;abc name = "lname"&gt; Name&lt;/abc
  &lt;/Testdata&gt;
  &lt;/Test&gt;
  </code></pre>
  
  <p>I have a small example, I have much larger XML which needs to deseralize into .Net objects!! Below is object I have</p>
  
  <pre><code>Public class Employee
  {
        Public string LastName {get; set;}
        Public string FirstName {get;set;}
  }
  </code></pre>
  
  <p>How do I deseralize such xml using either linq or XML serializer.</p>
  
  <p>Currently I am using xdocument, getting all node with name abc and using if else ladder constructing the object but that is not the right way.</p>
  
  <p>Test is first name
  Name is last name in the XML..</p>
  
  <p>Any help would be appreciated!!</p>