Skip to content

Conversation

@carlossanlop
Copy link
Contributor

They were either not documented in source or had inheritdoc.

@carlossanlop carlossanlop added new-content Indicates PRs that contain new articles waiting-on-reviews Indicates PRs that cannot be merged because of the lack of reviews labels Aug 1, 2019
@carlossanlop carlossanlop added this to the August 2019 milestone Aug 1, 2019
@carlossanlop carlossanlop self-assigned this Aug 1, 2019
Copy link
Contributor

@mairaw mairaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Made a few minor changes. See what you think!

@mairaw
Copy link
Contributor

mairaw commented Aug 2, 2019

The project should also be August now too. We'll soon close the July one.

@carlossanlop
Copy link
Contributor Author

Thanks @mairaw, your changes look good. The build passed, I think it's good to merge.

@carlossanlop carlossanlop added 🏁 Release: .NET Core 3.0 :checkered_flag: Release: .NET Core 3.0 verify-build-before-merge and removed waiting-on-reviews Indicates PRs that cannot be merged because of the lack of reviews labels Aug 2, 2019
@mairaw mairaw merged commit 6bbc5dd into dotnet:master Aug 2, 2019
<summary>To be added.</summary>
<returns>To be added.</returns>
<param name="typeToConvert">The type to be checked.</param>
<summary>Determines whether the specified type can be converted to an enum.</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum -> enumeration

Suggested change
<summary>Determines whether the specified type can be converted to an enum.</summary>
<summary>Determines whether the specified type can be converted to an enumeration.</summary>

<param name="typeToConvert">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<param name="typeToConvert">The type to be checked.</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should follow the inheritdoc comment and change this to whatever we land on for JsonConverter base type (from #2889 (comment)).

I prefer:

Suggested change
<param name="typeToConvert">The type to be checked.</param>
<param name="typeToConvert">The type of the object to check whether it can be converted by this converter instance.</param>

cc @JeremyKuhne, @steveharter

<returns>To be added.</returns>
<param name="typeToConvert">The type to be checked.</param>
<summary>Determines whether the specified type can be converted to an enum.</summary>
<returns><see langword="true" /> if the type can be converted; otherwise, <see langword="false" />.</returns>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly here (from #2889 (comment)):
if the type can be converted; otherwise, .

cc @jozkee

<returns>To be added.</returns>
<param name="typeToConvert">The type to convert.</param>
<summary>Create a converter for the specified type.</summary>
<returns>An instance of <see cref="T:System.Text.Json.Serialization.JsonConverter"/> of type T, where T is compatible with <paramref name="typeToConvert"/>.</returns>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that how we generally refer to generics? Why not link to JsonConverter<T> rather than "of type T"?

Although, the method is returning the non-generic JsonConverter base type and not the generic JsonConverter<T> so the comments in source might be misleading.

@steveharter - what do you think this should be doc'd as? Why are we talking about the T here for a non-generic type?

<param name="index">To be added.</param>
<summary>Gets the value at a specified index when the current value is an <see cref="F:System.Text.Json.JsonValueKind.Array" />.</summary>
<value>To be added.</value>
<param name="index">The item index.</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<param name="index">The item index.</param>
<param name="index">The zero-based item index within the JSON array.</param>

</Parameters>
<Docs>
<param name="other">To be added.</param>
<param name="other">The object to compare to this instance.</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API doesn't take object, but rather JsonEncodedText.

Suggested change
<param name="other">The object to compare to this instance.</param>
<param name="other">The JSON encoded text to compare to this instance.</param>

@carlossanlop carlossanlop deleted the JsonVarious branch August 15, 2019 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏁 Release: .NET Core 3.0 :checkered_flag: Release: .NET Core 3.0 new-content Indicates PRs that contain new articles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants