dotnet-api-docs
dotnet-api-docs copied to clipboard
.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
Count incorrectly showed 0 ## Summary Describe your changes here. Fixes #9879
https://learn.microsoft.com/en-us/dotnet/api/system.threading.semaphoreslim?view=net-8.0#examples https://github.com/dotnet/dotnet-api-docs/blob/eb7588a564e5d717332afcac41a302ca785e708f/snippets/csharp/System.Threading/SemaphoreSlim/Overview/example.cs#L76 Should be `// Task 3 releases the semaphore; previous count: 1. `
I wish that when possible, the Microsoft learn website would always include examples of how objects from classes are used. For example, the AsycContentLoadedEventArgs class. The class page itself has...
In the provided C# code snippet from the **IEnumerable\ Interface documentation**; https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1?view=net-8.0/#:~:text=1000%29.ToString%28%29%2C%20%22n%22%29 there appears to be a potential issue with the placement of a method parameter in the `string.Format` call...
I wanted to use the [JsonDerivedType](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonderivedtypeattribute?view=net-6.0) or [JsonPolymorphic](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonpolymorphicattribute?view=net-6.0) attribute in a .NET 6 project. So I looked it up at the docs (see links) and was happy, because they are...
This addresses questions asked by a customer and also observed on StackOverflow posts, indicating it's unclear if `RawData` includes the private key.
Contributes to #9757. Also deleted info about APIs being introduced in .NET Framework 3.5 in the last file since all supported versions are newer than that. ([Hide whitespace changes](https://github.com/dotnet/dotnet-api-docs/pull/9873/files?diff=unified&w=1).)
This documentation is not good. The example does not start from the first time. What is the reason for adding 120? It is not clear to which point these coordinates...
In WebHeaderCollection.Add Method the exceptions list doesn't have correct information. For invlaid value FormatException is being thrown from code. https://learn.microsoft.com/en-us/dotnet/api/system.net.webheadercollection.add?view=net-8.0#system-net-webheadercollection-add(system-string-system-string)