title: Ambiguous reference in Stream
body: <p>This is the webservice method i have</p>
  
  <pre><code> LoadImageFromDB(int ID, ref Stream streamReturnVal)
  </code></pre>
  
  <p>I have this on the top of the section <code>using Stream = System.IO.MemoryStream;</code> </p>
  
  <p>Whenever i consume this method(update web reference) from a web application, i get this error</p>
  
  <pre><code> 'Stream' is an ambiguous reference between 'System.IO.Stream' and 'WebReference.Stream'
  </code></pre>
  
  <p>Any thoughts?</p>
  
  <p>In webservice class</p>
  
  <pre><code>using Stream = System.IO.MemoryStream;
  LoadImageFromDB(int ID, ref Stream streamReturnVal);
  </code></pre>
  
  <p>In web page where above webservice is consumed:</p>
  
  <p>using WebReference;</p>
  
  <pre><code>Stream streamReturnVal = null;
  streamReturnVal = new MemoryStream();
  
  WebserviceInstanceName.LoadImageFromDB(100,streamReturnVal );
  </code></pre>
  
  <p>PS: Stream  - is from System.IO.Stream</p>