本文介绍了在dll控件中隐藏类属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我编写了一个dll项目,但我无法隐藏控件的经典属性。当我在另一个c#项目中加载控件时,我可以访问控件的任何方法或事件。
我不希望人们看到它的所有属性,只有那些我公开初始化的。
我试图将该类声明为私有......但这不是解决方案因为我以后无法构建它。 :S,我输了。
非常感谢。
Hi everybody,
I have coded a dll project but I cannot hide the classic properties of the control. When I load the control in another c# project, I can access to any methods or events of the control.
I would not like people could see all its properties, only those I have publicly initialized.
I have tried to declare the class as private... but that is not the solution cos I cannot construct it later. :S, I'm lost.
Thanks in advantage.
推荐答案
这篇关于在dll控件中隐藏类属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!