Generic collections Dictionary of keys and values are objects and arrays are objects, since an array, a List can be used as the value of the Hashtable I feel array should be set as a generic Dictionary of value, but don't know how to array as a generic collection value of the Dictionary? I also want to know is: when the array is not just one dimension, and higher dimensional array of how will the value of the set as a generic Dictionary array?
CodePudding user response:
Can, for example,
Dictionary
ToDirectionary (x=& gt; X.K ey, x=& gt; X.T oArray ());