示例#1
0
        public static ClassWithEnumerable New()
        {
            var c = new ClassWithEnumerable();

            c.List = new List <ClassWithFields>();
            return(c);
        }
示例#2
0
        public void ObjectEnumerablesAreNotCopied()
        {
            var c    = ClassWithEnumerable.New();
            var newC = c.ShallowCopy();

            Assert.Null(newC.List);
        }
示例#3
0
 public static ClassWithEnumerable New()
 {
     var c = new ClassWithEnumerable();
     c.List = new List<ClassWithFields>();
     return c;
 }