Faced with an interesting and not entirely clear behavior of the compiler.
Here is the code snippet:
static float Main(float[] args) { if (args.Length == 0) { Console.WriteLine("Неверное количество аргументов"); return 0f; } else { float _catA, _catB, _hypoC; try { DefinitionOfParties(args, out _catA, out _catB, out _hypoC); if (IsValidTriangle(_catA, _catB, _hypoC)) { return AreaCalculation(_catA, _catB); } return 0f; } catch (Exception ex) { Console.WriteLine(ex.Message); return 0f; } } } I try to add three numbers through the debug window, but I get an error on startup:
program doesn’t contain a static 'Main' method
It is not clear what VS wants from me? Swears at the lack of an entry point, which is?