I know the code to efficiently overlay one list on another in python, using dictionaries. Here is what i mean:
input:
dictA = {'c':2, 'e':1};
print(dictA);
output:
{'c': 2, 'e': 1}
input:
dictB = {'a':0,'b':0,'c':0,'d':0,'e':0,'f':0};
print(dictB);
output:
{'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0}
input:
dictB.update(dict(dictA));
print(dictB);
output:
{'a': 0, 'b': 0, 'c': 2, 'd': 0, 'e': 1, 'f': 0}
dictA is overlayed on dictB with the 'c' and 'e' now having the values they were assigned in dictA.
Question: What is the equivalent syntax in C# to overlay one list another as above?