How to read keys from the dictionary?

I have dictionary {{“1”,“Apple”},{“2”,“Orange”}} from which only keys to be extracted? How can i do it?

@raym174

Check this below thread.

Regards,
Ranjith.

Try this:

Dictionary.Keys.ToArray()

For Keys read try this
Dictionary.Keys.ToArray()

For value read try this
Dictionary.Values.ToArray()

image

1 Like