随笔分类 -  C#常用语法

摘要:这里采用的加解密使用base64转码方法,ECB模式,PKCS5Padding填充,密码必须是16位,否则会报错! 模式:Java的ECB对应C#的System.Security.Cryptography.CipherMode.ECB 填充方法:Java的PKCS5Padding对应C#System 阅读全文
posted @ 2018-08-02 14:08 woadmin 阅读(384) 评论(0) 推荐(1)
摘要:/// /// DataSet转换成指定返回类型的实体集合 /// /// /// /// public static List DataSetToList(DataSet ds) { PropertyInfo[] properties... 阅读全文
posted @ 2018-08-02 14:02 woadmin 阅读(524) 评论(0) 推荐(0)
摘要://字符串分割和拼接macId = string.Join(",", mac.Split(',').Select(s => string.Format("N'{0}'", s))); 阅读全文
posted @ 2018-08-02 13:56 woadmin 阅读(651) 评论(0) 推荐(0)