1 '============================================================================================
2 'Name:Manish Kumar Sinha
3 'Email Address: manishkumarsinha@sify.com
4 'Test Case Name: ParamArray:
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
6 '=============================================================================================
9 Function F(ParamArray
args() As Integer)as Integer
15 Dim a
As Integer() = { 1, 2, 3 }
19 Throw
New System
.Exception("#A1, Unexcepted Behaviour in F(a)")
24 Throw
New System
.Exception("#A2, Unexcepted Behaviour in F(10,20,30,40)")
28 Throw
New System
.Exception("#A3, Unexcepted Behaviour in F()")
32 '=============================================================================================