I am creating a simple system of operations with no database in C #. It has 3 Forms, which are: Login.cs , Register.cs and Main.cs . It also has the Conta.cs class, where operations are performed.
My question is this: in form Registration.cs I created a reference called mconta and I would like it to be global. In this case only Cadastro.cs has access to it.
Conta[] mconta;
mconta = new Conta[10];