dotnet-api-docs
dotnet-api-docs copied to clipboard
.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
### Type of issue Typo ### Description We have examples for other overloads of EnumerateFiles(). ### Page URL https://learn.microsoft.com/en-us/dotnet/api/system.io.directory.enumeratefiles?view=net-9.0 ### Content source URL https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.IO/Directory.xml ### Document Version Independent Id 61afaa43-8302-83d3-7cc4-da956574bceb...
### Describe the issue or suggestion The documentation does not have the new C#13 anti-constraint `allows ref struct` on any of the places it is used, like the Action/Func types,...
### Type of issue Code doesn't work ### Description `Math.Clamp` is currently documented as returning, in order of precedence: 1. `value` - where `min`
### Type of issue Lack of information ### Description Hi, Trying to implement a custom validation attribute deriving from [CustomValidationAttribute](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.customvalidationattribute), the [documentation on the constructor](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.customvalidationattribute.-ctor) does not say anything useful...
### Type of issue Code doesn't work ### Description The [.NET CoreWindowsIdentity documentation](https://learn.microsoft.com/en-us/dotnet/api/system.security.principal.windowsidentity?view=net-8.0) has various places that link to the [.NET Framework WindowsImpersonationContext class](https://learn.microsoft.com/en-us/dotnet/api/system.security.principal.windowsimpersonationcontext?view=netframework-4.8.1&viewFallbackFrom=net-8.0) that does not exist in .NET...
### Type of issue Other (describe below) ### Description In the open source Handler.Func.cs file the definitions for methods of the from public static void SetHandler(...) only run up to...
### Type of issue Missing information ### Description For the page mentioned below, `ExportRSAPublicKeyPem()` for instance does not exist in .NET Standard 2.0 and can't be found from inherited class...
### Type of issue Typo ### Description The code example shouldn't read: if ((stringValue.IndexOf("pink") **>** -1)) This is more efficient: if ((stringValue.IndexOf("pink") **!=** -1)) ### Page URL https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.datagridview.cellformatting?view=windowsdesktop-9.0&redirectedfrom=MSDN ### Content...
### Type of issue Missing information ### Description I would like to know in which cases a NotSupportedException may be thrown. ### Page URL https://learn.microsoft.com/en-us/dotnet/api/system.environment.getcommandlineargs?view=net-9.0&devlangs=csharp&f1url=%3FappId%3DDev17IDEF1%26l%3DEN-US%26k%3Dk(System.Environment.GetCommandLineArgs)%3Bk(SolutionItemsProject)%3Bk(DevLang-csharp)%26rd%3Dtrue ### Content source URL https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/Environment.xml...
### Type of issue Other (describe below) ### Description The HttpUtility.ParseQueryString(...) states that the return value is NameValueCollection while in fact it returns HttpValueCollection. HttpValueCollection derives from NameValueCollection and techincally...