Skip to content

Instantly share code, notes, and snippets.

@ankitvijay
Last active August 18, 2019 05:48
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 ankitvijay/bfa10d31f8391ad1c9b0344a55993ba9 to your computer and use it in GitHub Desktop.
Save ankitvijay/bfa10d31f8391ad1c9b0344a55993ba9 to your computer and use it in GitHub Desktop.
public abstract class SomeAbstractDto
{
}
public class DerivedSomeDto1 : SomeAbstractDto
{
public string SomeRandomProperty1 {get; set; }
public string SomeRandomProperty2 {get; set; }
}
public class DerivedSomeDto2 : SomeAbstractDto
{
public int SomeRandomProperty1 {get; set; }
public int SomeRandomProperty2 {get; set; }
}
.
.
.
public class DerivedSomeDto18 : SomeAbstractDto
{
public double SomeRandomProperty1 {get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment