repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(DISTFILES): Comment out a few missing files.
[mono-project.git]
/
mcs
/
mbas
/
Test
/
tests
/
ForEachB.vb
blob
a6a878d35872653992ad6914594a4786f39df388
1
Imports System
2
3
Module
ForEachB
4
5
Class C1
6
Public
ReadOnly index
As
Integer
=
0
7
8
Sub New
()
9
Dim
arr
()
As
Integer
= {
1
,
2
,
3
}
10
For Each
index
In
arr
11
Console
.
WriteLine
(
index
)
12
Next
13
End Sub
14
15
End
Class
16
17
Sub
main
()
18
Dim
c
As New
C1
()
19
If
c
.
index
<>
3
Then
20
Throw
New
Exception
(
"#FEB1"
)
21
End If
22
End Sub
23
24
End Module