dotnet-api-docs
dotnet-api-docs copied to clipboard
.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
## Summary Import is marked as obsolete ([SYSLIB0026](https://learn.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0026)): > 'X509Certificate.Import(byte[])' is obsolete: 'X509Certificate and X509Certificate2 are immutable. Use the appropriate constructor to create a new certificate.'
Currently the documentation about [Utf8JsonWriter.WriteRawValue Method](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonwriter.writerawvalue?view=net-8.0) has no examples and no links to examples. It would be nice if an example was part of the documentation or links to a...
On the [midpointrounding documentation for 4.8.1](https://learn.microsoft.com/en-us/dotnet/api/system.midpointrounding?view=netframework-4.8.1), the enum has two values, but the Examples uses a third undocumented value of _ToZero_.
There appears to be very little documentation on the new `TimeProvider` functionality. I had to go google around to see how this thing was expected to be registered in the...
In the following MS document page, for the RedirectPermanent method, default value seems to be true instead of false. I have tested it on my local machine and it is...
The official documentation claims false! With .NET Framework 4.8 RowCount does **not** exist! Copilot says it could be a problem in my development environment but, aside from being a downloader...
The doc https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.structlayoutattribute.pack?view=net-8.0#code-try-6 says: > To take another example, consider the following structure, which consists of two byte fields, one 32-bit signed integer field, one single-element byte array, and a...
Documentation for some types contains "Thread Safety" section. For example, for the `System.String` type [it says](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0#thread-safety), that > This type is thread safe. and for some other types (like `List`...
The [description](https://learn.microsoft.com/en-us/dotnet/api/system.collections.immutable.immutablesortedset-1.builder.unionwith?view=net-8.0#system-collections-immutable-immutablesortedset-1-builder-unionwith(system-collections-generic-ienumerable((-0)))) currently says that this function "Modifies the current set so that it contains all elements that are present in both the current set and in the specified collection."...
Hi, The doc for `StreamReader.Read(Span)` claims that it'll throw an IOException if ["the number of characters read from the stream is larger than the buffer length."]( https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader.read?view=net-8.0#system-io-streamreader-read(system-span((system-char)))) This is not...