VB.NET类 [英] VB.NET Classes

查看:68
本文介绍了VB.NET类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!我在vb.net中制作类并编译为DLL没问题.我的问题是在参考部分中,如何添加像在参考System.XML,System.Data中那样的Class.class.我想使我的类看起来像MyClass.Data.

Hi! I am making class in vb.net and compiled to a DLL no problem there. My question is in the reference part how can I add a Class.class like the one in a references System.XML, System.Data... I want to make my class appear like that, MyClass.Data.

推荐答案

如果需要您的 class 看起来像 System.Some.Things ...
仅使用命名空间在VB.NET和C#中创建和使用命名空间,然后添加程序集(dll)到另一个项目进行测试
if you need your class appear like System.Some.Things ...
use just Namespaces Creating and using Namespaces in VB.NET and C# and add your assembly (dll) to another project to test it


右键单击解决方案资源管理器中的引用->添加参考->
浏览到您的dll->单击确定.

BTW System.Data和System.Xml是d​​ll文件.
Right click on references in solution explorer -> Add reference ->
Browse to your dll -> Click OK.

BTW System.Data, System.Xml are dll files.


这篇关于VB.NET类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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