私はC#が初めてで、これに関する情報が見つからないようですので、ここで質問します。
名前空間のクラスは宣言する必要がありますか?
using System;
public class myprogram
{
    void main()
    {
        // The console class does not have to be declared?
        Console.WriteLine("Hello World");
    }
}
名前空間を使用していない場合は、クラスを宣言する必要があります
class mathstuff
{
    private int numberone = 2;
    private int numbertwo = 3;
    public int addhere()
    {
        return numberone + numbertwo;
    }
using System;
public class myprogram
{
    void main()
    {
        // the class here needs to be declared.
        mathstuff mymath = new mathstuff();
        Console.WriteLine(mymath.addhere());
    }
}
私はこれを正しく理解していますか?