private (TypeId, IQuantityType) _getTypeFromXml(XElement typeContent) { TypeId _Id = _getTypeId(typeContent); IQuantityType _quantityType = new QuantityType(_Id); return(_Id, _quantityType); }
private Quantity getQuantity(TypeExpression exp) { QuantityTypeService service = QuantityTypeService.getService(); QuantityType _type = service.getType(exp) as QuantityType; Quantity quantity = _type.getQuantity() as Quantity; quantity.Type = _type; return(quantity); }