随笔分类 - C#
摘要:using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net.Http;using System.Threading;using System.Threading.Ta
阅读全文
摘要:/// <summary> /// 获取文件的编码格式 /// </summary> public class EncodingType { /// <summary> /// 给定文件的路径,读取文件的二进制数据,判断文件的编码类型 /// </summary> /// <param name=“
阅读全文
摘要:由于开发过程中需要用到证书,所以通过调用 X509Certificate2 访问p12文件。 代码开发完成后,在本地VS上测试通过,本地IIS上测试通过,发布到线上服务器IIS后不通过;提示找不到文件而报错。(could not found file in space path) 怎么办呢,当时博主
阅读全文
摘要:RSA生成公钥和私钥 public void getKey(){ RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(); using (StreamWriter writer = new StreamWriter("G://Pri
阅读全文
摘要:C# LINQ系列:LINQ to DataSet的DataTable操作 及 DataTable与Linq相互转换 LINQ to DataSet需要使用System.Core.dll、System.Data.dll和System.Data.DataSetExtensions.dll,在项目中添加
阅读全文