public void StructValueType() { var latLongStructType = new LatLongStruct() { Latitude = 1, Longitude = 1 }; var latLongStructTypeModed = StructStudyHelpers.ModStruct(latLongStructType); Assert.AreNotEqual(latLongStructType, latLongStructTypeModed); }
public static LatLongStruct ModStruct(LatLongStruct llStruct) { llStruct.Latitude *= (decimal)1.1; llStruct.Longitude *= (decimal)1.1; return(llStruct); }