Decompile silverlight

March 23, 2009

Open the project assembly in a tool like Reflector (http://www.red-gate.com/products/reflector) to view the IL and embedded resources. Using the right plug-in,  you can even decompile the IL to C# syntax. Because IL code can be easily decompiled or reverse engineered, it’s not an appropriate place to store secrets (like encryption keys, proprietary algorithms, and so on). If you need to perform a task that uses sen- sitive code, consider calling a web service from your Silverlight application. If you just want to prevent other hotshots from reading your code and copying your style, you may be interested in raising the bar with an obfuscation tool that uses a number of tricks to scramble the structure and  names in your compiled code without changing its behavior. Visual Studio ships with a scaled-down obfuscation tool named Dotfuscator, and many more are available commercially (?).

Leave a Reply