{}再次 [英] {} again

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

问题描述

大家好。


示例书中:


Public MustInherit Class Broker


私有const m_MAXRESERVATION As Integer = 10

受保护的m_reservations()作为预留


Public Sub New()

m_reservations = New预订(m_MAXRESERVATION){}

结束分


......


在上述情况下{}的含义是什么?


thx

Hei

Hi All

in the book of example :

Public MustInherit Class Broker

Private const m_MAXRESERVATION As Integer =10
Protected m_reservations() as Reservation

Public Sub New()
m_reservations = New Reservation(m_MAXRESERVATION ) {}

End Sub

......

what mean of {} in above case?

thx
Hei

推荐答案

代码正在创建一个数组。查看VB语言参考,在Dim主题的

结尾附近有一个解释。

-

____________________

Klaus H. Probst,MVP
http:// www .vbbox.com /

" Hei" < CH ****** @ msn.com>在消息中写道

新闻:eq ************** @ TK2MSFTNGP12.phx.gbl ...
The code is creating an array. Look in the VB language reference, near the
end of the Dim topic there''s an explanation for that.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Hei" <ch******@msn.com> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
大家好

在示例书中:

公共MustInherit类经纪人

私有const m_MAXRESERVATION As Integer = 10
受保护的m_reservations()as Reservation

公共子新()
m_reservations =新预订(m_MAXRESERVATION){}

结束子

.....
上述情况下{}的意思是什么?



"开平" < CH ****** @ msn.com> schrieb
"Hei" <ch******@msn.com> schrieb
大家好。

公共MustInherit类经纪人

私有const m_MAXRESERVATION作为整数= 10
受保护的m_reservations()作为预留

Public Sub New()
m_reservations =新预订(m_MAXRESERVATION){}

结束Sub

.....

在上述情况下{}的意思是什么?
Hi All

in the book of example :

Public MustInherit Class Broker

Private const m_MAXRESERVATION As Integer =10
Protected m_reservations() as Reservation

Public Sub New()
m_reservations = New Reservation(m_MAXRESERVATION ) {}

End Sub

.....

what mean of {} in above case?




因为它已经是在另一个帖子中回答:它指定了数组的内容

。如果花括号之间没有任何东西,则数组有0

项。

-

Armin

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



As it''s already been answered in the other thread: It specifies the content
of the array. If there is nothing between the curly braces, the array has 0
items.
--
Armin

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


*" Hei" < CH ****** @ msn.com> scripsit:示例书中的
* "Hei" <ch******@msn.com> scripsit:


公共MustInherit类经纪人

私有const m_MAXRESERVATION As Integer = 10
受保护的m_reservations( )作为预订

Public Sub New()
m_reservations =新预订(m_MAXRESERVATION){}

End Sub

... ..

在上述情况下{}的意思是什么?
in the book of example :

Public MustInherit Class Broker

Private const m_MAXRESERVATION As Integer =10
Protected m_reservations() as Reservation

Public Sub New()
m_reservations = New Reservation(m_MAXRESERVATION ) {}

End Sub

.....

what mean of {} in above case?




如果''预订''带有''m_MAXRESERVATION''的新数组'' + 1元素是

创建。


-

Herfried K. Wagner [MVP]

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



A new array if ''Reservation'' with ''m_MAXRESERVATION'' + 1 elements is
created.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


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

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