2 REM ExpectedError: BC30524
\r
3 REM ErrorMessage: Property 'myprop' is 'WriteOnly'
\r
9 Dim a As Integer() = {1, 2, 3, 4}
\r
10 Public WriteOnly Property myprop() As Integer()
\r
11 Set(ByVal Value As Integer())
\r
18 ReDim Preserve myprop(5)
\r
20 For i As Integer = 0 to myprop.Length - 1
\r
21 Console.WriteLine(myprop(i))
\r