Skip to content

Instantly share code, notes, and snippets.

@MarcoNicolodi
Last active January 22, 2019 10:49
Show Gist options
  • Save MarcoNicolodi/6ce1c1160281631954f932d63d213741 to your computer and use it in GitHub Desktop.
Save MarcoNicolodi/6ce1c1160281631954f932d63d213741 to your computer and use it in GitHub Desktop.
Chain of responsibility
public class Label
{
private Label(string Result)
{
Value = Result;
}
public string Value { get; }
public static Label ApprovedOn => new Label("approvedOn");
public static Label ApprovedOff => new Label("approvedOff");
public static Label ReprovedOn => new Label("reprovedOn");
public static Label ReprovedOff => new Label("reprovedOff");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment