コード例 #1
0
        public void StructValueType()
        {
            var latLongStructType = new LatLongStruct()
            {
                Latitude  = 1,
                Longitude = 1
            };

            var latLongStructTypeModed = StructStudyHelpers.ModStruct(latLongStructType);

            Assert.AreNotEqual(latLongStructType, latLongStructTypeModed);
        }
コード例 #2
0
 public static LatLongStruct ModStruct(LatLongStruct llStruct)
 {
     llStruct.Latitude  *= (decimal)1.1;
     llStruct.Longitude *= (decimal)1.1;
     return(llStruct);
 }