QuestionQ316Verified/Data ManipulationCopy linkReport a problemAsk AstroTutorSave questionWhich of the following is a correct example of using LINQ to query data in a UiPath process?AUsing LINQ to filter a list of strings containing only "UiPath" by writing: listOfStrings.Where(Function(x) x = "UiPath").ToList()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).CopyToDataTable()DExecuting LINQ to merge two Data Tables by writing: dataTable1.Merge(dataTable2).CopyToDataTable()Show AnswerAnswerExplanationLINQ's Where operator filters a sequence according to a Boolean predicate. Applying Where(Function(x) x = "UiPath") to a string list retains only entries whose value is "UiPath", and ToList() materializes those filtered results as a list.Learn moreQuery expression basics (LINQ)Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion