Reverse Byte Order - CSharp System

CSharp examples for System:Byte

Description

Reverse Byte Order

Demo Code


using System.Text;
using System.Collections;
using System;//ww  w .j a v a 2s  .  c om

public class Main{
        public static byte[] ReverseByteOrder(this byte[] bytes)
        {
            Array.Reverse(bytes);
            return bytes;
        }
}

Related Tutorials