I want to intersect the 2 dictionaries, but I am not sure how to store historicalHashTags[x] too, I managed to store only the key and value of 1 dictionary.
var intersectedHashTags = currentHashTags.Keys.Intersect(historicalHashTags.Keys).
ToDictionary(x => x, x => currentHashTags[x]);
But, I want the result to be stored in a list that includes Key, currentHashTags[x], and historicalHashTags[x]
Example:
Dictionary<string, int> currentHashTags =
{ ["#hashtag1", 100], ["#hashtag2", 77], ["#hashtag3", 150], ...}
Dictionary<string, int> historicalHashTags =
{ ["#hashtag1", 144], ["#hashtag4", 66], ["#hashtag5", 150], ...}
List<(string,int,int)> result = { ["#hashtag1", 100, 144] }