Convert String To Little Endian - CSharp System

CSharp examples for System:String Endian

Description

Convert String To Little Endian

Demo Code


using System.Web.UI.WebControls;
using System.Web.UI;
using System.Web;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/* w  ww .j ava2s  .  com*/

public class Main{
        private static string ConvertToLittleEndian(string strOctStr)
    {
        string strRes = "";
        for (int i = strOctStr.Length - 2; i >= 0; i -= 2)
        {
            strRes += strOctStr.Substring(i, 2);
        }
        return strRes;
    }
}

Related Tutorials