Hi Folks,
I'm working on a c# windows form application, that builds code on the fly and makes a new exe progamme with ICodeCompiler.
My problem is that;
i can bind a string variable into source code to build as below;
..
..
sourcecode + =" string myvar='hello world'; ";
i can also bind array as below;
sourcecode + =" byte[] myBytevar; myBytevar[0]=144; ";
but when i have got a huge byte array to pass i can't because it contains binary code of any other file.
sourcecode + ="
...
...
byte[] myBytevar;
myBytevar[0]=144;
myBytevar[1]=055;
myBytevar[2]=006;
myBytevar[3]=082;
...
...
";
how can i pass a huge public byte array into the new exe source code easily??
Is it also possible to bind a CryptoStream typed variable into code??
All your helps would be great.
Thanks in advance