New() public static method

public static New ( ) : ClassWithEnumerable
return ClassWithEnumerable
示例#1
0
        public void ObjectEnumerablesAreNotCopied()
        {
            var c    = ClassWithEnumerable.New();
            var newC = c.ShallowCopy();

            Assert.Null(newC.List);
        }