Answers for "linq get a dictionary key and value c#"

C#
0

linq get a dictionary key and value c#

var values = dictionary.Where(x => someKeys.Contains(x.Key)).Select(x => x.Value);
 var keys = dictionary.Where(x => someValues.Contains(x.Value)).Select(x => x.Key);
Posted by: Guest on December-22-2020

Code answers related to "linq get a dictionary key and value c#"

C# Answers by Framework

Browse Popular Code Answers by Language