title: .NET Web Service - How to make properties invisible
body: <p>I have an ASP.NET (.asmx) Web Service project that has a method like:</p>
  
  <pre><code> public int GetData(Data d);
  </code></pre>
  
  <p>And Data class has properties:</p>
  
  <pre><code>  public class Data
      {
          public int Id { get; set; }
          public string Name { get; set; }
      }
  </code></pre>
  
  <p>I want the "Id" property to be seen by client, but not the "Name" property. They all have to be public because inner logic of the application need these properties public.</p>
  
  <p>So how can I set the "Name" property invisible to the client <strong>without changing its public accesser, and without making private get, private set?</strong></p>