Share c# class source code between several projects

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)