Skip to content

Instantly share code, notes, and snippets.

@mhinze
Created February 14, 2012 14:50
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 mhinze/1827249 to your computer and use it in GitHub Desktop.
Save mhinze/1827249 to your computer and use it in GitHub Desktop.
stupid first thoughts about some set ordering interface thing
public interface IOrderMe
{
Order PreferredOrder();
// or somethign like "void OrderMe(OrderContext relativeToOtherItems);"
}
public abstract class Order
{
}
public class Ordinal : Order
{
// something, int probably
}
public class Relative : Order
{
// something, little DSL probably
}
public class Irrelevant : Order
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment