I am using a WCF SOAP service that returns multidimensional object and array combinations. For methods that return a list of results (rows from the database), the structure of what is returned is different if there are multiple rows than if there is only one. So that I don't have to have an if/else to handle the two scenarios, I wrote code that checks how many rows are returned and converts the results for a single result into the same format as multiple results.
While my solution works, it seems like there should be a better way. Any thoughts? multiple rows: http://d.pr/xQiA single row: http://d.pr/WbtW single row after I reformat it to match multiple: http://d.pr/d3ea code that does the reformat: http://d.pr/yKnt Thanks, Wade _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
