(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / btests / Arguments_ByReferenceC.vb
blob9bc3990dd3a847481b648c43caa8b7ff2fcc241a
1 '=============================================================================================
2 'Name:Manish Kumar Sinha
3 'Email Address: manishkumarsinha@sify.com
4 'Test Case Name: Argument passing by Reference:
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
6 '=============================================================================================
8 Imports System
9 Module APR_1_1_0
10 Sub F(ByRef p As String)
11 p = "Sinha"
12 End Sub
14 Sub Main()
15 Dim a As String = "Manish"
16 F(a)
17 if (a="Manish")
18 Throw New System.Exception("#A1, Unexcepted behaviour of ByRef of String Datatype")
19 end if
20 End Sub
21 End Module
23 '=============================================================================================