c# - How to create string from array of strings -


i have array:

enter image description here

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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -