No compiled code to run error BC30002 Type 'ArrayList' is not defined, BC30451: 'Console' is not declared. It may be inaccessible due to its protection level

Invoke code error even after declaring the variables.
initially working fine later unable to run with these errors, tried updating all the packages and restart studio but still no luck…

Any inputs will highly help full

Thanks

Can you post the error of your screenshot and the things you are trying to do @balu