Files
octokit.net/Octokit/Models/Request/PullRequestReviewCommentEdit.cs
Itai Bar-Haim 4e804f61a6 Prefer using nameof(x) over literal "x" (#1781)
* updated XML docs and added some missing bits.

* prefer nameof(x) over literal "x"
2018-03-07 20:43:10 +10:00

34 lines
905 B
C#

using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Used to edit a pull request review comment
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestReviewCommentEdit : RequestParameters
{
/// <summary>
/// Creates an edit to a comment
/// </summary>
/// <param name="body">The new text of the comment</param>
public PullRequestReviewCommentEdit(string body)
{
Ensure.ArgumentNotNullOrEmptyString(body, nameof(body));
Body = body;
}
/// <summary>
/// The new text of the comment.
/// </summary>
public string Body { get; private set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Body: {0}", Body); }
}
}
}