如何在c#中创建dll文件的许可证 [英] how do create license for dll file in c#

查看:217
本文介绍了如何在c#中创建dll文件的许可证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
i创建一个主要包含use方法的dll ..(在c#中使用类库)

现在我想卖掉它...

i担心最终用户复制/粘贴



是否有任何方法或应用程序(免费)来保护DLL?



谢谢

解决方案

您好,



如果您打算使用类库只在你的项目中,然后

在类中声明一个私有变量,并创建一个带有

参数的方法来传递密码,以便在创建对象后调用

班级。如果密码匹配,则更改变量

的值,并且当调用类的任何方法时,检查

变量的值并相应地引发错误。

hi i create a dll that contain mostly use method .. (with class library in c#)
now i want to sell it ...
i worry for copy/paste by end-users

is there any method or application(free) to protect the dll ?

thanks

解决方案

Hi,

If you are going to use the class library in only your projects, then
declare a private variable with in the class and create a method with
argument to pass your password to be called after creating the object
of the class. If the password matches change the value of the variable
and when ever any method is called of the class check the value for the
variable and raise error accordingly.


这篇关于如何在c#中创建dll文件的许可证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆