You could create a library project that has this class this way all you have to do is add a reference to that project.
If that is no option you could use “Right click -> add existing item -> Add as link” this way you only have one copy of the code but it can exist in multiple projects.