private object GetData() { using (MessageElementData val = _GetData()) { if (val == null) { return(null); } object a = null; a = MessageElementDataUtil.ToRRBaseArray(val); if (a != null) { if (DataTypeUtil.IsNumber(val.GetTypeID())) { RRBaseArray ra = (RRBaseArray)a; try { return(MessageElementDataUtil.RRBaseArrayToArray(ra)); } finally { ra.Dispose(); } } if (val.GetTypeID() == DataTypes.string_t) { RRBaseArray ra = (RRBaseArray)a; try { return(MessageElementDataUtil.RRBaseArrayToString(ra)); } finally { ra.Dispose(); } } IDisposable ad = a as IDisposable; if (ad != null) { ad.Dispose(); } throw new DataTypeException("Unknown RRArray type"); } a = MessageElementDataUtil.ToMessageElementNestedElementList(val); if (a != null) { return(a); } throw new ApplicationException("Unknown data type"); } throw new ApplicationException("Unknown data type"); }