1 '============================================================================================
\r
2 'Name:Manish Kumar Sinha
\r
3 'Email Address: manishkumarsinha@sify.com
\r
4 'Test Case Name: ParamArray:
\r
5 'APR-1.0.0: ParamArray can be used only on the last argument of argument list. it allows us to 'pass an arbitrary list. It allows us to pass an arbitrary number of argument to the procedure
\r
6 '=============================================================================================
\r
11 Sub F(Optional ParamArray args() As Integer = {0,0,0})
\r
12 Console.Write("Array contains " & args.Length & " elements:")
\r
13 if (args.Length <> 3)
\r
14 Throw New System.Exception("#A1, Unexcepted behaviour in string of OP1_0_1")
\r
18 Dim a As Integer() = { 1, 2, 3 }
\r
24 '=============================================================================================
\r