QuestionQ234Verified/UiPath Automation DevelopmentCopy linkReport a problemAsk AstroTutorSave questionWhich of the following accurately demonstrates using LINQ to query data in a UiPath process?AExecuting LINQ to merge two DataTables by writing: dataTable1.Merge(dataTable2).CopyToDataTable()BApplying LINQ to find duplicates in a list of integers by writing: listOfIntegers.FindDuplicates().ToList()CUtilizing LINQ to sort DataTable rows based on a specific column by writing: dataTable.OrderBy(Function(x) x.ToString).CopyToData Table()DUsing LINQ to filter a list of strings containing “UiPath” by writing: listOfStrings.Where(Function(x) x = “UiPath”).ToList()Show AnswerAnswerExplanationLINQ’s Where method filters an enumerable according to a Boolean predicate, and ToList returns the matching elements as a list. Filtering a string list for elements equal to "UiPath" therefore uses a valid LINQ query pattern.Learn moreEnumerable.Where Method (System.Linq)Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion