title: Use/generate methods signatures with int[] insted of ArrayOfInt on .NET web service
body: <p>I have a ASP.NET web service (<code>.asmx</code>) with methods that receives <code>int</code> arrays (<code>int[]</code>) and nullable <code>int</code> arrays (<code>int?[]</code>) as parameters. I also have a test web application for consuming this web service via a Service Reference.</p>
  
  <p>The problem is that every time I change something in the web service code, recompile it and update the service reference at the test application, a different type of parameter is generated for the web service methods on the test application. For example:</p>
  
  <p>On the first build and service update, the method signature generated by Visual Studio at the test app is: </p>
  
  <p><code>void MyMethod(int[] firstParam, int?[] secondParam)</code>. </p>
  
  <p>Then I make some changes, do it again and get something like:</p>
  
  <p><code>void MyMethod(ArrayOfInt fistParam, ArrayOfInt1 secondParam)</code></p>
  
  <p>(with <code>ArrayOfInt</code> being the equivalent of <code>int[]</code> and <code>ArrayOfInt1</code> being the equivalent of <code>int?[]</code>).</p>
  
  <p>Once more, and I get:</p>
  
  <p><code>void MyMethod(ArrayOfInt1 firstParam, ArrayOfInt secondParam)</code>,</p>
  
  <p>with <code>ArrayOfInt</code> and <code>ArrayOfInt1</code> swaped (<code>ArrayOfInt1</code> being now the equivalent of <code>int[]</code> and <code>ArrayOfInt</code> being the equivalent of <code>int?[]</code>).</p>
  
  <p><br>
  <br>
  What I really want is to use the simple <code>int[]</code> and <code>int?[]</code> types (no matter how many times I recompile and update the service reference!). How can I achieve this?</p>