Obfuscation is one way, but it can\'t protect from breaking the piracy protection security of the application. How do I make sure that the application is not tampered with,
Obfuscate the code! There is an example in Obfuscating C# Code.