Пример #1
0
        public static ClassWithArray New()
        {
            var c = new ClassWithArray();

            c.Arr = new ClassWithFields[0];
            return(c);
        }
Пример #2
0
        public void ObjectArraysAreNotCopied()
        {
            var c    = ClassWithArray.New();
            var newC = c.ShallowCopy();

            Assert.Null(newC.Arr);
        }
Пример #3
0
 public static ClassWithArray New() {
     var c = new ClassWithArray();
     c.Arr = new ClassWithFields[0];
     return c;
 }