Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

trygetvalue dictionary c# example

string value = "";
if (openWith.TryGetValue("tif", out value))
{
    Console.WriteLine("For key = "tif", value = {0}.", value);
}
else
{
    Console.WriteLine("Key = "tif" is not found.");
}
 
PREVIOUS NEXT
Tagged: #trygetvalue #dictionary
ADD COMMENT
Topic
Name
1+2 =