public bool SplmtryDataAddItem(SupplementaryData1 value) { // BEGIN ADDED BY XSD - array AddItem accessor try { if ((this.splmtryDataField == default(SupplementaryData1[]))) { return(false); } else { SupplementaryData1[] array = new SupplementaryData1[(this.splmtryDataField.Length + 1)]; int i = 0; for (i = 0; (i < this.splmtryDataField.Length); i = (i + 1)) { array[i] = splmtryDataField[i]; } array[i] = value; this.SplmtryData = array; return(true); } } catch (System.Exception ex) { return(false); } // END ADDED BY XSD }
public bool SplmtryDataSetItem(int index, SupplementaryData1 value) { // BEGIN ADDED BY XSD - array SetItem accessor try { if ((this.splmtryDataField == default(SupplementaryData1[]))) { return(false); } else { this.splmtryDataField[index] = value; return(true); } } catch (System.Exception ex) { return(false); } // END ADDED BY XSD }
public bool SplmtryDataRemoveItem(int index) { // BEGIN ADDED BY XSD - array RemoveItem accessor try { if ((this.splmtryDataField == default(SupplementaryData1[]))) { return(false); } else { if ((this.splmtryDataField.Length <= index)) { return(false); } else { SupplementaryData1[] array = new SupplementaryData1[(this.splmtryDataField.Length - 1)]; int i = 0; for (i = 0; (i < index); i = (i + 1)) { array[i] = splmtryDataField[i]; } for (i = (i + 1); (i < this.splmtryDataField.Length); i = (i + 1)) { array[i] = splmtryDataField[i]; } this.SplmtryData = array; return(true); } } } catch (System.Exception ex) { return(false); } // END ADDED BY XSD }