Created
January 16, 2015 16:12
-
-
Save ascjones/817d96ae098e55a964f9 to your computer and use it in GitHub Desktop.
C# Finite Sets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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