Skip to content

Commit

Permalink
Improve docs for BinaryData.ToString() (#22880)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft authored Jul 26, 2021
1 parent 3637342 commit d462477
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/core/System.Memory.Data/src/BinaryData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ public static BinaryData FromObjectAsJson<T>(
/// <summary>
/// Converts the value of this instance to a string using UTF-8.
/// </summary>
/// <remarks>
/// If the underlying object is a JSON string, calling <see cref="ToString"/> will retain the wrapping double quotes in the
/// resulting string. If you want to deserialize the JSON string to a string, thereby removing the wrapping double quotes,
/// call <see cref="ToObjectFromJson{String}"/> instead.
/// </remarks>
/// <returns>
/// A string from the value of this instance, using UTF-8 to decode the bytes.
/// </returns>
Expand Down

0 comments on commit d462477

Please sign in to comment.