C# 클래스 EA.Iws.Domain.ShipmentQuantityUnitConverter

파일 보기 프로젝트 열기: EnvironmentAgency/prsd-iws 1 사용 예제들

공개 메소드들

메소드 설명
ConvertToTarget ( ShipmentQuantityUnits source, ShipmentQuantityUnits target, decimal value, bool throwOnLossOfPrecision = true ) : decimal

비공개 메소드들

메소드 설명
CubicMetersToLitres ( decimal value ) : decimal
HasMoreThanNDecimalPlaces ( decimal value, int decimalPlaces ) : bool
KilogramsToTonnes ( decimal value ) : decimal
LitresToCubicMeters ( decimal value ) : decimal
TonnesToKilograms ( decimal value ) : decimal
WouldLosePrecision ( decimal value, bool throwOnLossOfPrecision ) : bool

메소드 상세

ConvertToTarget() 공개 정적인 메소드

public static ConvertToTarget ( ShipmentQuantityUnits source, ShipmentQuantityUnits target, decimal value, bool throwOnLossOfPrecision = true ) : decimal
source ShipmentQuantityUnits
target ShipmentQuantityUnits
value decimal
throwOnLossOfPrecision bool
리턴 decimal