dotnet-api-docs
dotnet-api-docs copied to clipboard
.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
### Description I found some code that was looping over a hashset, and removing items. Hashset is not throwing when you remove while enumerating like it used to. It's convenient...
### Type of issue Missing information ### Description [On "Unix" platforms FileVersionInfo only looks at managed metadata](https://github.com/dotnet/runtime/blob/9215568cdca8359762089eb2c30f97f74f116b33/src/libraries/System.Diagnostics.FileVersionInfo/src/System/Diagnostics/FileVersionInfo.Unix.cs#L25C1-L34C1), while [on Windows it uses GetFileVersionInfoEx](https://github.com/dotnet/runtime/blob/9215568cdca8359762089eb2c30f97f74f116b33/src/libraries/System.Diagnostics.FileVersionInfo/src/System/Diagnostics/FileVersionInfo.Windows.cs#L21). The documentation mentions that the "properties are...
### Type of issue Other (describe below) ### Description At , the method signature is rendered as: ```csharp public static(T1, T2, T3, T4, T5, T6, T7,(T8)) Create(T1 item1, T2 item2,...
Updated the summary of the DateTimeOffset constructor to include calendar information.
### Type of issue Other (describe below) ### Description It is a confusing example. This page is about the "`EventHandler Delegate`", but the example provided is for the "`EventHandler Delegate`"....
### Type of issue Missing information ### Description Clarify that selectedrows is used like an array. The sxample in the documentation doesn't make it very clear as someone new to...
### Type of issue Other (describe below) ### Description In the examples for Path.GetRelativePath, there is the following: ``` […] Console.WriteLine(Path.GetRelativePath("C:/Program Files/Common Files", "C:/Program Files/Microsoft")); […] // This code produces...
The documentation for `public StreamWriter (System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize)` states that an `ArgumentOutOfRangeException` will be thrown if _`bufferSize` is negative_. That statement is incorrect as it implies that...
## Summary - Removed misleading word "subsequent" from all FileShare enum member descriptions - Clarified that FileShare flags control access for all file operations, not just future ones - Updated...
Content: https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.customvalidationattribute.method?view=netcore-2.2 Content source: [xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml](https://github.com/dotnet/docs/blob/master/xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml) The remarks for the `Method` property of `CustomValidationAttribute` incorrectly state that the specified method must return a `Boolean` and takes a `ValidationResult` `out` param. In...