您可能感兴趣的VB(Whidbey)的一些更改 [英] Some changes to VB (Whidbey) that may interest you

查看:86
本文介绍了您可能感兴趣的VB(Whidbey)的一些更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚接过惠德贝。以下是您可能不知道的一些有趣的变化:


1.继续执行Do,For和While命令


2.某些类的默认实例返回(例如表单)。


3.属性现在可以具有混合访问级别。例如你可以

声明这样的属性:


公共属性SomeVal()作为整数

获取

返回m_val

结束获取


私人套餐(ByVal价值为整数)

m_val =价值
结束集

结束财产


4. IsNot关键字。现在,而不是If Not someObj Is Nothing,你可以

写如果someObj IsNot Nothing


更不用说运算符重载,无符号类型,泛型,部分

类型。

-

克里斯


要给我发电子邮件,请删除下划线和我的电子邮件中的午餐美元

地址。

Just got my hands on Whidbey. Here are a few interesting changes that you
may not be aware of:

1. Continue statement on Do, For and While commands

2. Default Instances of certain classes are back (such as forms).

3. Properties can now have mixed access levels. For example you can
declare a property like this:

Public Property SomeVal() As Integer
Get
Return m_val
End Get

Private Set(ByVal Value As Integer)
m_val = Value
End Set
End Property

4. IsNot keyword. Now instead of If Not someObj Is Nothing, you can
write If someObj IsNot Nothing

Not to mention Operator Overloading, Unsigned types, Generics, Partial
types.
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.

推荐答案

" Chris Dunaway" < dunawayc@_lunchmeat_sbcglobal.net> schrieb
"Chris Dunaway" <dunawayc@_lunchmeat_sbcglobal.net> schrieb
刚刚接过惠德贝。以下是您可能不知道的一些有趣的变化:
Just got my hands on Whidbey. Here are a few interesting changes
that you may not be aware of:




只有一个问题:公开这些信息是否合法?

-

Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html



Only a question: Is it legal to make this informatin public?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


In文章<到***************************** @ 40tude.net> ;, Chris Dunaway写道:
In article <to*****************************@40tude.net>, Chris Dunaway wrote:
刚刚接过惠德贝。以下是您可能不知道的一些有趣变化:

1.继续关于Do,For和While命令的声明


Wooo ! HOOO!现在,如果他们将扩展继续和退出XXX

语句以使用标签 - 那么他们可以完全取消Goto

:)就像Java标记的断点并继续...

2.某些课程的默认实例又回来了(例如表格)。


我个人可以忍受...从未使用过''他们在VB.CLASSIC,所以

我现在不要指望:)但是,它会让很多其他人的生活变得更加容易。

更容易。 />
3.属性现在可以具有混合访问级别。例如,您可以声明这样的属性:

公共属性SomeVal()作为整数
获取
返回m_val
结束获取

私人套装(ByVal价值为整数)
m_val =价值
结束套件
结束财产


不错......不是必需的,但它使混合访问概念更清洁

然后有一个公共属性获取,私有方法设置器...

4. IsNot关键字。现在而不是If Not someObj Is Nothing,你可以写如果someObj IsNot Nothing


Lame ...

更不用说运算符重载了,未签名类型,泛型,部分
类型。
Just got my hands on Whidbey. Here are a few interesting changes that you
may not be aware of:

1. Continue statement on Do, For and While commands

Wooo! Hooo! Now if they would extend the Continue and Exit XXX
statements to use labels - then they could do away with Goto completely
:) Like Java''s labeled breaks and continues...
2. Default Instances of certain classes are back (such as forms).

I personaly can live with out that... Never used ''em in VB.CLASSIC, so
I don''t expect to now :) But, it will make a lot of other peoples lives
easier.
3. Properties can now have mixed access levels. For example you can
declare a property like this:

Public Property SomeVal() As Integer
Get
Return m_val
End Get

Private Set(ByVal Value As Integer)
m_val = Value
End Set
End Property

Nice... Not essential, but it makes mixed access conceptualy cleaner
then having a public property Get, private method setter...
4. IsNot keyword. Now instead of If Not someObj Is Nothing, you can
write If someObj IsNot Nothing

Lame...
Not to mention Operator Overloading, Unsigned types, Generics, Partial
types.




Wooo! Hoooo!特别是未签名的类型和泛型。


-

Tom Shelton

MVP [Visual Basic]



Wooo! Hoooo! Especially the unsigned types and generics.

--
Tom Shelton
MVP [Visual Basic]


*" Armin Zingler" < AZ ******* @ freenet.de> scripsit:
* "Armin Zingler" <az*******@freenet.de> scripsit:
刚刚接过惠德贝。以下是您可能不知道的一些有趣的变化:
Just got my hands on Whidbey. Here are a few interesting changes
that you may not be aware of:



只有一个问题:公开此信息是否合法?



Only a question: Is it legal to make this informatin public?



AFAIK是的。大部分信息都在PDC上发布。


-

Herfried K. Wagner

MVP·VB Classic, VB.NET

< http://www.mvps.org/dotnet>


< http://www.plig.net/nnq /nquote.html>



AFAIK yes. Most of this information has been presented at the PDC.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>


这篇关于您可能感兴趣的VB(Whidbey)的一些更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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