" VB"没有Microsoft.VisualBasic ......? [英] "VB" without Microsoft.VisualBasic...?

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

问题描述

是否有人编写VB.Net(2003)代码/没有/引用

Microsoft.VisualBasic命名空间(?),无论其是否为/ b
导入''是不是?


这里的权力正试图引入一个标准

我们应该写我们的VB程序/没有/使用这个

名称空间完全依赖于CLR功能。


评论和意见请...


TIA,

Phill W.

Is anyone writing VB.Net (2003) code /without/ referencing the
Microsoft.VisualBasic namespace(?), regardless of whether its
Import''ed or not?

The Powers That Be here are trying to introduce a "standard" that
we should be writing our "VB" programs /without/ using this
namespace at all and relying instead solely on CLR functionality.

Comments and Opinions please...

TIA,
Phill W.

推荐答案




我唯一的评论是,为什么?


IMO,人们应该使用任何可用的名称空间来提高生产力。将一个VB程序员的手绑在他/她背后并不是为了达到这个目标而不是
。有人可能会争辩说他仍然有一只手可用,但是......但是,我打得不是很好 - 只用一只手

减慢了这个过程更多。


迪克


-

Richard Grier(微软Visual Basic MVP)


有关联系信息,请参见 www.hardandsoftware.net 。 />

Visual Basic程序员串行通信指南的作者,第3版

Edition ISBN 1-890422-27-4(391页)2002年2月出版。
Hi,

My only comment would be, "Why?"

IMO, one should use whatever namespaces are available that enhance
productivity. Tying a VB programmer''s hand behind his/her back is not
likely to meet that goal. One could argue that he still has one hand
available, so... However, I don''t type very well -- using only one hand
slows the process even more.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer''s Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.


真的可以在没有VB命名空间的情况下编写,只需引用CLR即

..NET Framework类。但是你会编写更多的代码并重写很多

的VB命名空间中定义的函数类。如果你选择的话,你可以这样做。$ / b

Vijay


" Phill。 W" <,P ****** @ open.ac.uk>。在消息中写道

news:bi ********** @ yarrow.open.ac.uk ...
Really you can write without VB Namespace, just referencing the CLR i.e the
..NET Framework classes. But you will writing more code and re-writing a lot
of functions, classes defined in the VB Namespace. If you chose that you can
do it.

Vijay

"Phill. W" <P.******@open.ac.uk> wrote in message
news:bi**********@yarrow.open.ac.uk...
是否有人在写VB.Net( 2003)代码/没有/引用Microsoft.VisualBasic命名空间(?),无论它是否导入'

这里的力量正在尝试引入标准那我们应该写我们的VB。程序/没有/使用这个
命名空间,而只依赖于CLR功能。

评论和意见请...

TIA,
Phill W.
Is anyone writing VB.Net (2003) code /without/ referencing the
Microsoft.VisualBasic namespace(?), regardless of whether its
Import''ed or not?

The Powers That Be here are trying to introduce a "standard" that
we should be writing our "VB" programs /without/ using this
namespace at all and relying instead solely on CLR functionality.

Comments and Opinions please...

TIA,
Phill W.



嗨Phil,


作为喜欢C#的程序员,我试试使用旧式VB的东西编写我的VB代码而不是

(ha,它不是&那么>旧的,但是)。我喜欢

使用System命名空间。


这样做的一个好处是,如果在任何阶段我决定移动

VB到C#它需要较少的编辑。


但是,这种纯粹主义不是实用主义 - 对你自己的b $ b项目很好,在工作上不那么有效。我会回应迪克的观点 - 如果它是b $ b,你需要它,找到''纯'的方式将是昂贵的b $ b b $ b , - 使用它。


问候,

Fergus
Hi Phil,

As a programmer who prefers C#, I try writing my VB code without
using old-style VB stuff (ha, it''s not <that > old, yet). I like to
use the System namespace.

One advantage of this is that if at any stage I decide to port the
VB to C# it takes less editing.

However, that''s purism not pragmatism - fine for your own
projects, not so effective at work. I''ll echo Dick''s view - If it
works, and you need it, and finding a ''pure'' way is going to be
costly, - Use it.

Regards,
Fergus


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

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