これは私が作成した単純なプログラムです。1つのテーブルクラスと1つのメインクラスです。テーブルクラスで、名前を出力するだけのprintメソッドを作成しました。メインクラスからprintメソッドを呼び出していますが、出力を取得していません。
namespace ConsoleApplication3
{
    class table
    {
        public static void print()
        {
            Console.WriteLine("My name is prithvi-raj chouhan");
        }
    }
    class Program
    {
        public static void Main()
        {
            table t = new table();
            t.print();  // Error the program is not giving output while calling the print method
        }
    }
}