摘要: c#将string和byte数组之间互相转换如下方法将字符串转换为byte数组,使用System.Buffer.BlockCopy方法。static byte[] GetBytes(string str){ byte[] bytes = new byte[str.Length * sizeof... 阅读全文
posted @ 2015-12-14 09:53 彩虹下的约定 阅读(1798) 评论(0) 推荐(0) 编辑
摘要: log4net 阅读全文
posted @ 2015-12-07 14:25 彩虹下的约定 阅读(339) 评论(0) 推荐(1) 编辑
摘要: 一、整数类型类型别名允许的值sbyteSystm.SByte介于-128~127之间的整数byteSystm.Byte介于0~255之间的整数shortSystm.Int16介于-32768~32767之间的整数ushortSystm.UInt16介于0~65535之间的整数intSystm.Int... 阅读全文
posted @ 2015-11-25 16:31 彩虹下的约定 阅读(164) 评论(0) 推荐(0) 编辑