Skip to content

Instantly share code, notes, and snippets.

@MarcBruins
Created December 16, 2018 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcBruins/2634de009457c302f6090f41eec8eeb6 to your computer and use it in GitHub Desktop.
Save MarcBruins/2634de009457c302f6090f41eec8eeb6 to your computer and use it in GitHub Desktop.
PullRequest initialize property explicitly
public class PullRequestRequest
{
public PullRequestRequest(string body)
{
Body = body;
}
public string Body { get; set; }
}
//OR
public class PullRequestRequest
{
public PullRequestRequest()
{
Body = "defaultBodyValue";
}
public string Body { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment