I am doing Python for the 1st time, but I am familiar with C#. I need to convert python to C#.
I saw this syntax that I couldn't understand. I Googled for it but couldn't find anything helpful.
Python Code:
asmt[pnric]['claim'].keys()
Content of asmt[pnric]['claim']
:
{'6809255581E0035': {'ccode': ['HT'], 'cdate': 20130314, 'vdate': 20130309, 'hcode': 'SGH'}, '6809255581E0040': {'ccode': ['HT'], 'cdate': 20130912, 'vdate': 20130907, 'hcode': 'SGH'}, '6809255581E0032': {'ccode': ['HT'], 'cdate': 20130110, 'vdate': 20130104, 'hcode': 'SGH'}, '6809255581E0037': {'ccode': ['HT'], 'cdate': 20130411, 'vdate': 20130406, 'hcode': 'SGH'}, '6809255581E0039': {'ccode': ['HT'], 'cdate': 20130704, 'vdate': 20130629, 'hcode': 'SGH'}}
Content of asmt[pnric]['claim'].keys()
:
['6809255581E0035', '6809255581E0040', '6809255581E0032', '6809255581E0037', '6809255581E0039']
What does the keys()
method do? It seems to return a list of keys in the ['claim']
.
How can I convert this to C#?