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
class Opel : Car {} | |
class Volvo : Car {} | |
class HandleVolvo | |
{ | |
HandleVolvo(Volvo volvo) | |
{ | |
} | |
} | |
class HandleSaab | |
{ | |
HandleSaab(Saab saab) | |
{ | |
} | |
} | |
static void Main(string[] args) { | |
... | |
var return = (Car)response; | |
//Call correct Handle-class based on Car | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment