//----------------------------------------------------------------------------------------------------- public InvoiceLineSummary() { this._transportAndInsurance = new FinancialValue(); this._gST = new FinancialValue(); this._duty = new FinancialValue(); this._cIFInLocalCurr = new MonetaryAmount(); this._cIF = new FinancialValue(); this._insuranceInLocalCurr = new MonetaryAmount(); this._insurance = new FinancialValue(); this._freightInLocalCurr = new MonetaryAmount(); this._freight = new FinancialValue(); this._fOBInLocalCurr = new MonetaryAmount(); this._fOB = new FinancialValue(); }
//----------------------------------------------------------------------------------------------------- public static bool LoadFromFile(string fileName, out MonetaryAmount obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); }
//----------------------------------------------------------------------------------------------------- public static bool Deserialize(string input, out MonetaryAmount obj) { System.Exception exception = null; return Deserialize(input, out obj, out exception); }
//----------------------------------------------------------------------------------------------------- /// <summary> /// Deserializes xml markup from file into an MonetaryAmount object /// </summary> /// <param name="fileName">string xml file to load and deserialize</param> /// <param name="obj">Output MonetaryAmount object</param> /// <param name="exception">output Exception value if deserialize failed</param> /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns> public static bool LoadFromFile(string fileName, out MonetaryAmount obj, out System.Exception exception) { exception = null; obj = default(MonetaryAmount); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } }
//----------------------------------------------------------------------------------------------------- /// <summary> /// Deserializes workflow markup into an MonetaryAmount object /// </summary> /// <param name="input">string workflow markup to deserialize</param> /// <param name="obj">Output MonetaryAmount object</param> /// <param name="exception">output Exception value if deserialize failed</param> /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns> public static bool Deserialize(string input, out MonetaryAmount obj, out System.Exception exception) { exception = null; obj = default(MonetaryAmount); try { obj = Deserialize(input); return true; } catch (System.Exception ex) { exception = ex; return false; } }