csharp how to call methods from another class

Code Example - csharp how to call methods from another class

                
                        public class AllMethods
{
    public static void Method2()
    {
        // code here
    }
}

class Caller
{
    public static void Main(string[] args)
    {
        AllMethods.Method2();
    }
}