コード例 #1
0
        public void ShouldPartiallyInitializeValueType()
        {
            var someValueType = new SomeValueType(1);

            Assert.AreEqual(1, someValueType.X);
            Assert.AreEqual(0, someValueType.Y);
        }
コード例 #2
0
 public SomeValueType(int x)
 {
     this = new SomeValueType();
     X    = x;
 }