首页  编辑  

数组间互相拷贝

Tags: /C#/其他技巧/   Date Created:

int [] A = new int [ 3 ];

byte [] B = new byte [ 3 ];

A[ 0 ] = 0x12345678 ;

Buffer . BlockCopy(A, 0 , B, 0 , 3 );

Text = B[ 0 ] . ToString( "X" );