title: C# List Calling to Main
body: <p>Hey i've got the code:</p>
  
  <pre><code>   public static CreditCard FindCard(List&lt;CreditCard&gt; Cust, string Name) 
  
      {
         foreach(CreditCard cust in Cust)
         {
             if(cust.Name == Name)
             {
                 return cust;
             }
         }
         return null;
  
      }
  </code></pre>
  
  <p>What im trying to do is call it from the Main() which i input a name and returns the first card with the given name. Ive tried for ages would u guys be able to help?</p>
  
  <p>So if i enter "Mike" it'll display his info, ive already got the list set up its just calling it from the main</p>