如何在解决方案中声明变量? [英] how can I declare variable in the solution ?

查看:75
本文介绍了如何在解决方案中声明变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在vb.net中声明变量,并且可以在所有解决方案中使用它,而不仅限于当前项目吗?

can i declare variable in vb.net and i can use it in all solution not in current project only ?

推荐答案

您可以为项目添加引用其中包含包含变量的类.但是,我强烈建议您先了解OOP.
You can add a references to the project which contains the class which contains the variable. However, I strongly suggest you to learn about OOP first.


这篇关于如何在解决方案中声明变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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