dotnet-api-docs
dotnet-api-docs copied to clipboard
.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
Both methods throw the exception if the directory of the file being written to doesn't exist. ## Summary Added DirectoryNotFoundException to list of exceptions thrown for CreateText and AppendText. Pulled...
## Summary Changed the exception description to match 'startIndex' from String.Substring, because the behavior is identical (and original description on Array.FindIndex is arguably either wrong or vague and hard to...
Example of what it looks like today (see bottom line of documentation): ```cs // ......... // Exceptions: // T:System.ArgumentNullException: // array is null. -or- match is null. // // T:System.ArgumentOutOfRangeException:...
## Summary This fixes the exception documentation for `SocketsHttpHandler.PooledConnectionLifetime` The documentation currently reads: > ## Exceptions > [ArgumentOutOfRangeException](https://learn.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception?view=net-8.0) > The value specified is less than [Zero](https://learn.microsoft.com/en-us/dotnet/api/system.timespan.zero?view=net-8.0#system-timespan-zero) or is equal to...
https://learn.microsoft.com/de-de/dotnet/api/system.random.-ctor?view=net-8.0#system-random-ctor(system-int32) The example code uses: `(int) DateTime.Now.Ticks & 0x0000FFFF` There is no explanation why this is used. The example mentions the seeds generated might end up the same when executed...
This concerns the documentation for double.IsRealNumber: https://learn.microsoft.com/en-us/dotnet/api/system.double.isrealnumber?view=net-8.0 I was surprised to find while testing that this returns `true` for `double.PositiveInfinity` and `double.NegativeInfinity`. In math class, we learn that infinities are...
.NET source code clearly shows Read() may not return a fixed number of characters, but only what's currently available on the stream. ReadBlock returns the stated number of characters and...
I was looking for some syntax I forgot and neither of these search strings got me anything interesting (Bing, Edge) create IReadonlylist c# c# IReadonlylist learn I realize the first...
The documentation page for the `DataTemplateSelector` seems to have a formatting issue (see below). ![image](https://github.com/dotnet/dotnet-api-docs/assets/11773136/ac4cd8b9-7aff-45ab-93a6-445a5cc895c6) It would be probably better to show a single snippet of XAML code and not...
Can the documentation be improved to mention this? Maybe I am going crazy, or my code is wrong, but this caused me hours of frustration, (looking for documentation, reviewing my...