I improve @Jaex's idea a little bit. My problem with his solution is the error thrown by the solution explorer. It is not very clean.
So you have a file Client.cs
with your class as partial
:
public partial class Client {
// your awesome code comes here
}
In another file ClientKeys.cs
with your class as partial
, you will add your keys: