public bool TxTtlsSetAddItem(TransactionTotalsSet1 value) { // BEGIN ADDED BY XSD - array AddItem accessor try { if ((this.txTtlsSetField == default(TransactionTotalsSet1[]))) { return(false); } else { TransactionTotalsSet1[] array = new TransactionTotalsSet1[(this.txTtlsSetField.Length + 1)]; int i = 0; for (i = 0; (i < this.txTtlsSetField.Length); i = (i + 1)) { array[i] = txTtlsSetField[i]; } array[i] = value; this.TxTtlsSet = array; return(true); } } catch (System.Exception ex) { return(false); } // END ADDED BY XSD }
public bool TxTtlsSetSetItem(int index, TransactionTotalsSet1 value) { // BEGIN ADDED BY XSD - array SetItem accessor try { if ((this.txTtlsSetField == default(TransactionTotalsSet1[]))) { return(false); } else { this.txTtlsSetField[index] = value; return(true); } } catch (System.Exception ex) { return(false); } // END ADDED BY XSD }
public bool TxTtlsSetRemoveItem(int index) { // BEGIN ADDED BY XSD - array RemoveItem accessor try { if ((this.txTtlsSetField == default(TransactionTotalsSet1[]))) { return(false); } else { if ((this.txTtlsSetField.Length <= index)) { return(false); } else { TransactionTotalsSet1[] array = new TransactionTotalsSet1[(this.txTtlsSetField.Length - 1)]; int i = 0; for (i = 0; (i < index); i = (i + 1)) { array[i] = txTtlsSetField[i]; } for (i = (i + 1); (i < this.txTtlsSetField.Length); i = (i + 1)) { array[i] = txTtlsSetField[i]; } this.TxTtlsSet = array; return(true); } } } catch (System.Exception ex) { return(false); } // END ADDED BY XSD }