Invoke static method using class name

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 727
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.Xml;
using System.IO;
using System.Diagnostics;

namespace BlogProject
{
class Test
{
public static void Hello()
{
Console.WriteLine("Hello world");
}
}
class Program
{
static void Main(string[] args)
{
Test.Hello();
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response