So this is what i\'m trying to achieve, is there an elegant way to do this?
public class item { } public class A : item { int a; } public class B : item