Skip to content

Instantly share code, notes, and snippets.

@thefringeninja
Created January 3, 2014 01:00
Show Gist options
  • Select an option

  • Save thefringeninja/8230550 to your computer and use it in GitHub Desktop.

Select an option

Save thefringeninja/8230550 to your computer and use it in GitHub Desktop.
[DataContract] public class SomethingHappened : Event
{
[DataMember(Order = 1)] public readonly string Sku;
[DataMember(Order = 2)] public readonly string UPC;
[DataMember(Order = 3)] public readonly string Description;
public SomethingHappened(string sku, string upc, string description)
{
Sku = sku;
UPC = upc;
Description = description;
}
private SomethingHappened() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment