I have a web service that has an array as a parameter. The problem is I only want to let the user send me an array of 15 entries. Of course if they sent me a bigger array I could write code to only take the first 15, but I dont want to do that. I would like to let the user understand we need 15 and only 15 entries and no more.
The only way I know to initialize an array to a fixed value is instantiate it and I cannot do that as a parameter.
Maybe an array as a parameter isnt the best option? Any Ideas?