Example #1
0
 public static PolymorphicSampleListAsMember GetSampleInstance()
 {
     return(new PolymorphicSampleListAsMember
     {
         SampleList = PolymorphicSampleList.GetSampleInstance()
     });
 }
Example #2
0
        public static PolymorphicSampleList GetSampleInstance()
        {
            var samples = new PolymorphicSampleList
            {
                new PolymorphicOneSample(),
                new PolymorphicTwoSample()
            };

            return(samples);
        }