script works but has no code inside

hi
i have a script which works correctly inside unity, it takes the arguments and works correctly, but when i open the script by visual stadio the script has no code inside it and it is empty.
the script is empty in word pad too and it does not work in other projects.
is there any was that i get its code back?
you can see in the picture that script takes inputs but has no code inside.

Looks like you changed the name after you created the script from FavoriteMenuButton to FavoriteMenuController so you have broken the connection. The class name and script name need to match

that is totally my mistake, i apologize for this disaster in first place, however i really don’t know how this name change has been happened since i know that the classes name and script name shall match.
and Thank you so much for your time, i appreciate.