Link to home
Start Free TrialLog in
Avatar of directxBOB
directxBOBFlag for Ireland

asked on

Checking the values passed into a method?

I am passing around 10 values into a method and I was wondering is there a built in way to ensure that all 10 values have been passed in / not null?

I am looking to avoid having a massive if statement or block of statements.

Avatar of bungHoc
bungHoc
Flag of Viet Nam image

Use array or list, then loop through it and check?
ASKER CERTIFIED SOLUTION
Avatar of dstanley9
dstanley9

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of directxBOB

ASKER

Bit the bullet and made my own class with the values.