1
I am creating a simple database-free operations system in C#. It has 3 forms, being them: Login.Cs, Cadastro.Cs and Main.Cs. Also has the class Account.Cs, where operations are carried out.
My question is this: no form Register.Cs I created a reference called mconta and I would like it to be global. In this case only the Cadastro.Cs has access to it.
Conta[] mconta;
mconta = new Conta[10];
Almost always this is wrong.
– Maniero