We need an example, written in C#, preferred VS2005, but also 2008/2010 is ok.
Files must be decrypted and encrypted with X509 certificates, stored in the local windows certificates storage.
those encryption and decryption must be kompatible with gpgsm.exe from GnuPG. It means, if encrypted with yourt examplecode in C#, GPGsm.exe has to decrypt it.
So, one method for decrypt and one method for encrypt.
We need just an examplecode, it should be an console appliction. The code must commended and an Dokumenation is needed.