title: C# class libraries and console application
body: <p>I have this class library I created. And I am running into the issue of getting the library to work with a console application. This is just a basic assignment I'm working on but I do not know where I am going wrong. Here are my files:</p>
  
  <p>Class Library:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace Test2
  {
      public class Test
      {
         public static string GetData(String prompt)
      {
          Console.WriteLine(prompt);
          return Console.ReadLine();
      }
     public static int GetInt()
      {
          return Convert.ToInt32(GetData("Enter an interger"));
      }
      public static void put(String output)
  
      {
          Console.WriteLine(output);
      }
      public static void put(String output, String heading)
      {
          put(heading + '\n' + output);
      }
      public static void Main(String[] args)
      {
          int x = GetInt();
          int y = GetInt();
          if (x &gt; 0 &amp;&amp; y &gt; 0) put(String.Format("Sum:{0}", x + y));
       }
     }
  }
  </code></pre>
  
  <p>Console Application:</p>
  
  <pre><code> using System;
   using System.Collections.Generic;
   using System.Linq;
   using System.Text;
   using System.Threading.Tasks;
   using Test2;
  
    namespace ConsoleApp1
     {
      class Program
      {
          static void Main(string[] args)
         {
           Test myTest = new Test();
          Test.GetData(prompt);
            }
        }
    }
  </code></pre>
  
  <p>My main issue I guess I have is calling the methods to run in the console application. No matter how much reading I do I can't seem to know what I am doing wrong.</p>