c# - How to create string from array of strings -
this question has answer here:
i have array:
and need make array above string,one string this:
(export_sdf_id=3746) or (export_sdf_id=3806) or (export_sdf_id=23) or (export_sdf_id=6458) or (export_sdf_id=3740) or (export_sdf_id=3739) or (export_sdf_id=3742)
any idea elegant way implement it?
there string.join-method designed this.
var mystring = string.join(" or ", idsarr);
this result in following string:
export_sdf_id=3746 or export_sdf_id=3806 or export_sdf_id=23 or export_sdf_id=6458 or export_sdf_id=3740 or export_sdf_id=3739 or export_sdf_id=3742
note brackets omited not needed query.
Comments
Post a Comment