title: DataMember could not be found
body: <p>As I have done my research regarding this problem of mine, I still have no luck in solving my error of Error    1 <strong>The type or namespace name 'DataMember' could not be found (are you missing a using directive or an assembly reference?)</strong></p>
  
  <p>I have come across a solution stating that I should reference <strong>System.Runtime.Serialization</strong> but still I am having no luck even when add reference to it.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>using System;
  using System.Linq;
  using System.Collections.Generic;
  using System.Text;
  using System.Runtime.Serialization;
  using System.Xml.Serialization;
  
  namespace WebServApp
  {
      [Serializable]
      public class Employee
      {
          [DataMember]
          public int EmpNo { get; set; }
          [DataMember]
          public string EmpName { get; set; }
          [DataMember]
          public int DeptNo { get; set; }
          [DataMember]
          public int Salary { get; set; }
      }
  }
  </code></pre>
  
  <p>and this is the tutorial that I am actually trying to follow:
  <a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=472" rel="noreferrer">http://www.dotnetcurry.com/ShowArticle.aspx?ID=472</a></p>
  
  <p>Can anyone help me with this error?</p>