Created
December 16, 2018 12:02
-
-
Save MarcBruins/2634de009457c302f6090f41eec8eeb6 to your computer and use it in GitHub Desktop.
PullRequest initialize property explicitly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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