[Solved] C# Global Object [closed]


Change it to:

public static class ObjectsGlobal
{
    public static Bays bay1 = new Bays();
    public static bay10 = new Bays();
}

Also, as recommended in a comment I have now read, take a look at the Singleton Pattern.

solved C# Global Object [closed]