dotnet / dotnet/dotnet-api-docs
bad example
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
string value = ""; //may give impression that it will stay "" if "tif" key is not found
if (openWith.TryGetValue("tif", out value)) // but value will become null
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 41dfd07d-9111-765b-0900-a76b768e176a
* Version Independent ID: 9302710e-bb44-7a89-4ba5-217a1f987115
* Content: [Dictionary<TKey,TValue>.TryGetValue(TKey, TValue) Method (System.Collections.Generic)](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.trygetvalue?view=netframework-4.7.2)
* Content Source: [xml/System.Collections.Generic/Dictionary`2.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Collections.Generic/Dictionary`2.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.