I have dictionary {{“1”,“Apple”},{“2”,“Orange”}} from which only keys to be extracted? How can i do it?
Try this:
Dictionary.Keys.ToArray()
For Keys read try this
Dictionary.Keys.ToArray()
For value read try this
Dictionary.Values.ToArray()
1 Like