'#Region' and '#End Region' statements are not valid within method bodies/multiline lambdas
#Region block must be declared at a class, module, or namespace level. A collapsible region can include one or more procedures, but it cannot begin or end inside of a procedure.
Error ID: BC32025
To correct this error
Ensure that the preceding procedure is properly terminated with an
Ensure that the
#End Regiondirectives are in the same code block.