Skip to content

Instantly share code, notes, and snippets.

@Llano

Llano/main.cs Secret

Last active January 20, 2021 07:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Llano/d3670118691274448e3166fa8dddb7a4 to your computer and use it in GitHub Desktop.
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