   C# : extracting an int from a byte array
  Okay.. let me explain thisI have a byte array..I want to extract a int from this byte arrayIn C I can do something like that if I remember int myint;uchar bytearray[200];memcpy(&myint,&bytearray[0],sizeof(int));Now I need to do the exact same thing in C#How I do that?there's no memcpy equivalent in C# as far as I know..Thanks in advance..   
  I'm not an expert in C#, but I think the right way is:byte[] bytearray = new byte[200];int myint;int first_byte_index=0;myint=System.BitConverter.ToInt32(bytearray,first_byte_index);   ;  great.. that worked fine..thank you very much!   