title: VSCode errors :...already contains a definition for...| The call is ambiguous between the following methods or properties,
body: <p>I am having these errors in VSCode -> GNU/Linux:</p>
  
  <ul>
  <li>The namespace '' already contains a definition for
  'GCoreT' [testc]</li>
  </ul>
  
  <p>For this behavior I have read this,</p>
  
  <p><a href="https://stackoverflow.com/questions/7035437/how-to-fix-namespace-x-already-contains-a-definition-for-x-error-happened-aft/17657519#17657519">How to fix &quot;namespace x already contains a definition for x&quot; error? Happened after converting to VS2010</a></p>
  
  <p>but I can not find the solution, that works for me.</p>
  
  <hr>
  
  <ul>
  <li><p>The call is ambiguous between the following methods or properties:
  'GCoreT.mapTex(string, E[])' and 'GCoreT.mapTex(string, E[])' [testc]</p></li>
  <li><p>Type 'GCoreT' already defines a member called 'mapTex' with the same
  parameter types [testc] void GCoreT.mapTex(string text, E[] add)</p></li>
  </ul>
  
  <p>.  </p>
  
  <p>I think this is the most relevant simplified code.</p>
  
  <pre><code>using System;
  
  namespace testc
  {
      class Program
      {
          static void Main(string[] args)
          {
             //.. 
  
          }
      }
  }
  </code></pre>
  
  <hr>
  
  <pre><code>using System;
  
  class GCoreT{
        ^^^------------------&gt; he says 0
  
  
      public Ene[] GTEne (String tex, E[] ene){
      //..    
      mapTex(tex, ene); 
      ^^^------------------&gt; he says 1
      //..
      }
  
      private void mapTex(String text, E[] add){
                   ^^^------------------------------&gt; he says 2
          //..
      }
  }
  </code></pre>
  
  <p>VSCode says:</p>
  
  <p>0</p>
  
  <blockquote>
    <p>The namespace '' already contains a definition for
    'GCoreT' [testc]</p>
  </blockquote>
  
  <p>1</p>
  
  <blockquote>
    <p>The call is ambiguous between the following methods or properties:
    'GCoreT.mapTex(string, E[])' and 'GCoreT.mapTex(string, E[])' [testc]</p>
  </blockquote>
  
  <p>2</p>
  
  <blockquote>
    <p>Type 'GCoreT' already defines a member called 'mapTex' with the same
    parameter types [testc] void GCoreT.mapTex(string text, E[] add)</p>
  </blockquote>
  
  <hr>