Click here to Skip to main content
15,912,837 members

Comments by nazarinlaw (Top 36 by date)

nazarinlaw 14-Apr-16 18:06pm View    
Actually i've been working on socket connection since webproxy don't support socks5 or socks4 connection :)
nazarinlaw 14-Apr-16 18:01pm View    
Thanks :)
nazarinlaw 14-Apr-16 17:54pm View    
i just thought i could use memorystream since it is straight forward ! any ideas ?
nazarinlaw 14-Apr-16 17:52pm View    
Just to be straight ! i want to update the header_bytes on class Utility from main() class without modifying !
nazarinlaw 14-Apr-16 17:50pm View    
var memorystreamoutput = new byte[10];


var ms = new MemoryStream(memorystreamoutput);

var bytes = new byte[] {1,2,3};
ms.Write(bytes,0,bytes.Length);

Console.Write('[');
foreach (byte b in memorystreamoutput)
{
Console.Write("{0:X2}, ", b);
}
Console.WriteLine(']');


i can update the memoryoutput from memorystream like this why can't i update it from another class with the same instance ? :(