📜  trygetvalue 字典 c# 示例 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.144000             🧑  作者: Mango

代码示例1
string value = "";
if (openWith.TryGetValue("tif", out value))
{
    Console.WriteLine("For key = \"tif\", value = {0}.", value);
}
else
{
    Console.WriteLine("Key = \"tif\" is not found.");
}