简体   繁体   中英

Windows Form - Custom User Control

I have created a custom user control and build it into a DLL file, When I use it into another project as a user control, after occurring an exception, it's source appears and everyone can change and build it again for himself.

how can I lock or close my custom user control's source code?

I didn't understand from the question how throw exception reveals the source code.

However, there is not much you can do in order to completely hide your source code. As .NET assembly is contains IL code which can be always reverse-engineered quite easily with tools like Reflector.

The best thing you can do is to obfuscate the code. There are a bunch of different tools and obfuscation algorithm. Google for .NET obfuscator and you pick the tool you like more.

You can find quite a few obfuscators listed here: http://msdn.microsoft.com/en-us/vcsharp/aa336818 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM