QuestionQ362

VerifiedUiPath Automation Development

Given that a workflow contains two lists:

  1. FranceCities, containing names of cities in France
  2. IndiaCities, containing names of cities in India

Which expression should be supplied as the Input to a MessageBox to display every city name from both lists?

Explanation

Enumerable.Concat combines the two city-name sequences, and String.Join produces one comma-separated string from that combined sequence. Calling ToString() on a list or enumerable does not enumerate and format its individual city names. The valid .NET method name is String.Join; choice A is the intended expression despite its apparent String.Joinf typographical error.

Learn more

Community Discussion

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