error CS1525: Unexpected symbol `void'

Please use code tags when you want to add code to your posts.

You should also include a little more code, so that we see what else does exist, especially which scopes.
That error says ‘void’ isn’t expected. In this particular case, the method appears to be defined within a scope that cannot contain the method. Based on the indentation, it seems you’ve put the method outside of the type’s definition (it ends before the method starts) and you also seem to have one curly bracket at the end that should be removed.