Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# get key by value Dict

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: #key #Dict
ADD COMMENT
Topic
Name
5+7 =