Close popover
Art Gerald Ranque (agranque)
Sun Life Financial Inc

Sun Life Financial Inc
agranque Member since 2017 8 posts
Sun Life Financial Inc
Posted: June 1, 2018
Last activity: November 6, 2018

params keyword

I am trying to implement a method that has params (C#'s version of Java's varargs) keyword (which, I believe, works like the Concat method in stringUtils), so I can add an unlimited number of strings to a method as input parameters. Take this as an example:

public string ShowParamsExample(params string[] sample){ return sample[0];}

PRS validates it, but when I debug it, it says that the "sample" object has not been instantiated. I also observed that the exception says (in this case):
Object has not been instantiated [some exception messages] on method ShowParamsExample(String[] sample) [line number], etc.

So, my question is, is "params" supported in PRS?

Robotic Process Automation
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.