5
我有一个列表,我转换成一个byte []像这样:C#字节[]返回列表<int>
List<int> integerList = new List<int>();
integerList.Add(1);
integerList.Add(2);
integerList.Add(3);
byte[] bytes = integerList.SelectMany(BitConverter.GetBytes).ToArray();
如何转换这回列表?
这将产生一个字节列表,是否正确? – 2011-12-17 06:18:52
是的;这不是你要问的吗? – Melllvar 2011-12-17 06:23:34