using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EC.Utils.ConvertEx
{
public class CharCommon
{
///
/// 10进制转换为二进制List
///
///
///
public static List IntToBinaryList(int value10) {
int curValue = value10;
List binaryLIst = new List();
while (curValue > 0) {
binaryLIst.Add(curValue % 2);
curValue = curValue / 2;
}
return binaryLIst;
}
///
/// 列表倒序
///
///
///
public static List ListReverse(List inList)
{
List binaryLIst = new List();
int icount = inList.Count;
for (int x = icount-1; x >= 0; x--) {
binaryLIst.Add(inList[x]);
}
return binaryLIst;
}
}
}