Skip to content

Instantly share code, notes, and snippets.

@davidelettieri
Created April 3, 2020 18:00
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 davidelettieri/744df9e717240608ee3672e5df799544 to your computer and use it in GitHub Desktop.
Save davidelettieri/744df9e717240608ee3672e5df799544 to your computer and use it in GitHub Desktop.
Union<Success,Failure> ValidateEmail(Customer c) { ... }
public class Success {}
public class Failure {
public string Message {get;}
public Failure(string message) {
Message = message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment