Beispiel #1
0
        public void CanCopyGenericProperties()
        {
            var c    = new ClassWithGeneric();
            var newC = c.ShallowCopy();

            Assert.Equal(c.intVal, newC.intVal);
        }
Beispiel #2
0
        public static ClassWithGeneric New()
        {
            var c = new ClassWithGeneric();

            c.intVal = 34;
            return(c);
        }
Beispiel #3
0
 public void CanCopyGenericProperties()
 {
     var c = new ClassWithGeneric();
     var newC = c.ShallowCopy();
     Assert.Equal(c.intVal, newC.intVal);
 }
Beispiel #4
0
 public static ClassWithGeneric New()
 {
     var c = new ClassWithGeneric();
     c.intVal = 34;
     return c;
 }