DLL 是实现“黑匣子”的唯一方法吗?你的代码?
我的 DAL 和 BLL 将用作类似的 Webform 的基类。但是,我希望这些基类被“隐藏”并只是继承。如果需要进行更改,可以从一个地方完成,并且只需重新分发 dll(或其他解决方案)即可。我知道你可以用 DLL 来做这样的事情,但我想知道 .NET 3.5 是否有其他方法来做同样的事情。
My DAL and BLL are going to be used as base classes for Webforms that are similar. However, I want these base classes to be "hidden" away and just inherited from. If there needs to be a change it's done from one place and the dlls (or other solution) is just redistributed. I know you can do such a thing with DLLs, but I was wondering if .NET 3.5 has other ways of doing the same thing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
并不真地。您在寻求更高的效率吗?使用方便吗?分发 DLL 将是保持代码独立的好方法,同时允许它们将其包含在应用程序中并将其用作基类。 .NET 将它们称为“程序集”,但它实际上只是用户可以包含的另一个 DLL。
not really. Are you looking for more efficiency? ease of use? Distributing DLLs is going to be a good way of keeping your code separate while allowing them to include it in an application and use it as a base class. .NET calls them "assemblies" but it's really just another DLL users can include.