Skip to content

Instantly share code, notes, and snippets.

@ascjones
Created January 16, 2015 16:12
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 ascjones/817d96ae098e55a964f9 to your computer and use it in GitHub Desktop.
Save ascjones/817d96ae098e55a964f9 to your computer and use it in GitHub Desktop.
C# Finite Sets
interface IFin
{
int Ordinal { get; }
}
class Fin3 { }
class Fin2 : Fin3 { }
class Fin1 : Fin2 { }
class Fin0 : Fin1 { }
class Foo
{
public int Get(Fin2 fin)
{
}
private int Blah()
{
Get(new Fin0());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment