title: Resolve ambiguous reference in C#
body: <p>I am working on a WCF client where i have 2 service references.Both service references have a common method names.I have GetNames() in both of my service references.Since i have to instantiate based on the condition ,I am trying to do the following:</p>
  
  <pre><code>IF Yes
  
  Serviceclient1.GetNames name1= new Serviceclient1.GetNames();
  
  Else
  
  ServiceClient2.GetNames name2 =new Serviceclient1.GetNames();
  </code></pre>
  
  <p>But I am getting ambiguous reference even though i am referring to two different namesspaces ?</p>
  
  <p>I would be glad if some one can guide me here ?</p>