10-13-2022, 10:36 AM
LA uses standard C#. It can be either class with Main, or top-level statements without Main.
In this case either:
1. Put both functions into a class.
class Program {
put code here
}
2. Or convert the code to valid top-level statements: move Main code out of Main (and delete Main), and delete the 'public' keyword (then the function will be a local function).
----------
About 'Add missing using directives': LA finds classes with same name in multiple namespaces, and cannot know which are correct. Either delete wrong usings, or click No and then add good usings.
In this case either:
1. Put both functions into a class.
class Program {
put code here
}
2. Or convert the code to valid top-level statements: move Main code out of Main (and delete Main), and delete the 'public' keyword (then the function will be a local function).
----------
About 'Add missing using directives': LA finds classes with same name in multiple namespaces, and cannot know which are correct. Either delete wrong usings, or click No and then add good usings.