Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Get key by his value on Dict C#

var myKey = myDict.FirstOrDefault(x => x.Value == "myValue").Key;
// return the first key finded in the dict associated to this value
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #key #Dict
ADD COMMENT
Topic
Name
4+7 =