コード例 #1
0
 public SetOfPolymorphic(Business.SetOfPolymorphic source)
 {
     Id = source.Id;
     if (source.PolymorphicBaseClasses != null)
     {
         PolymorphicBaseClasses = source.PolymorphicBaseClasses.Select(x => PolymorphicBaseClass.GetMostConcrete(x)).ToArray();
     }
 }
コード例 #2
0
 public MappedObjectGeneric(Business.MappedObjectGeneric <Business.PolymorphicBaseClass> source)
 {
     Id              = source.Id;
     AString         = source.AString;
     GenericProperty = (T)(object)PolymorphicBaseClass.GetMostConcrete(source.GenericProperty);
 }