QuestionQ233

VerifiedUiPath Studio

A developer created a variable of type List of Strings named UserList and initialized it as an empty list: UserList = new List(Of String).

What is written to the log message after the following Invoke Code runs?

Question Image

Explanation

The List<String> instance is initially empty. The invoked VB.NET code calls Add for "User1" and "User2", leaving two elements in the mutable list. The subsequent Count expression therefore evaluates to 2. UiPath Invoke Code accepts input arguments for the invoked code.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!