Build a string of HEX and strings. How?
<p>It turns out building the following string in python...</p>

<pre><code># global variables
cr = '\x0d' # segment terminator
lf = '\x0a' # data element separator
rs = '\x1e' # record separator
sp = '\x20' # white space

a = 'hello'
b = 'world'

output = a + rs + b
</code></pre>

<p>...is not the same as it may be in C#.</p>

<p>How do I accomplish the same in C#?</p>
