Skip to content

Default parameters undocumented #1529

Closed
@nxtn

Description

@nxtn

Some methods have different overloads with extended parameters.

For example

public Task<HttpResponseMessage> GetAsync(string requestUri);
public Task<HttpResponseMessage> GetAsync(string requestUri, HttpCompletionOption completionOption);

If completionOption is unspecified, I have to go to the source codes to find the default value.

https://github.com/dotnet/corefx/blob/master/src/System.Net.Http/src/System/Net/Http/HttpClient.cs#L20

I hope the docs could cover these.

Metadata

Metadata

Assignees

Labels

Pri3Indicates issues/PRs that are low priorityarea-System.Netdoc-enhancementImprove the current content

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions