public static PolymorphicBaseClass GetMostConcrete(Business.PolymorphicBaseClass source) { if (source is Business.PolymorphicSubClass) { return(new PolymorphicSubClass((Business.PolymorphicSubClass)source)); } return(new PolymorphicBaseClass(source)); }
public PolymorphicBaseClass(Business.PolymorphicBaseClass source) { Id = source.Id; AString = source.AString; }