Skip to content

Instantly share code, notes, and snippets.

@melkio
Created October 1, 2012 13:23
Show Gist options
  • Save melkio/3811776 to your computer and use it in GitHub Desktop.
Save melkio/3811776 to your computer and use it in GitHub Desktop.
Factory with nested class
public class Order
{
private Order() { }
public class Factory
{
public Order CreateNewOrder(...)
{
var order = new Order();
...
return order;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment