开发者

Windows Form - Custom User Control

I have created a custom user control and build it into a DLL fil开发者_高级运维e, 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜