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
9 Function F(ParamArray args() As Integer)as Integer
\r
15 Dim a As Integer() = { 1, 2, 3 }
\r
19 Throw New System.Exception("#A1, Unexcepted Behaviour in F(a)")
\r
22 b = F(10, 20, 30, 40)
\r
24 Throw New System.Exception("#A2, Unexcepted Behaviour in F(10,20,30,40)")
\r
28 Throw New System.Exception("#A3, Unexcepted Behaviour in F()")
\r
32 '=============================================================================================