Updated project.
[mono.git] / mcs / btests / Arguments_ByReferenceC.vb
1 '=============================================================================================\r
2 'Name:Manish Kumar Sinha \r
3 'Email Address: manishkumarsinha@sify.com\r
4 'Test Case Name: Argument passing by Reference:\r
5 'APR-1.1.0: If variable elements is of value type, i.e. it contains only a value then procedure '               can change the variable or any of its members\r
6 '=============================================================================================\r
7  \r
8 Imports System\r
9 Module APR_1_1_0\r
10         Sub F(ByRef p As String)\r
11                 p = "Sinha"\r
12         End Sub \r
13    \r
14         Sub Main()\r
15         Dim a As String = "Manish"\r
16         F(a)\r
17                 if (a="Manish")\r
18                 Throw New System.Exception("#A1, Unexcepted behaviour of ByRef of String Datatype")\r
19                 end if\r
20         End Sub \r
21 End Module\r
22 \r
23 '=============================================================================================