随笔分类 - ASP.NET(C#)
摘要:using System.Speech.Synthesis; //项目引用System.Speech var speech = new SpeechSynthesizer { Volume = 100, Rate = -5 }; speech.SetOutputToWaveFile(path); s
阅读全文
摘要:void Main() { var list = new List<MusicEntity>(); for (int i = 0; i < 20; i++) { list.Add(new MusicEntity { Id = i, Path = new Random().Next(9999) + "
阅读全文
摘要:参考:构建树形结构数据(全部构建,查找构建)C#版 - umeall - 博客园 (cnblogs.com) 1 public class TreeObejct 2 { 3 public string id { set; get; } 4 public string pId { set; get;
阅读全文
摘要:VS 2022密钥激活码: Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH
阅读全文
摘要:配置Nginx location / { proxy_pass http://localhost:5000; #真实IP proxy_set_header X-Real-IP $remote_addr; } .NET获取IP HttpContext.Request.Headers["X-Real-I
阅读全文
摘要:location / { proxy_pass http://localhost:5000; #以下为WebSocket需要配置 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Conn
阅读全文
摘要:关联阅读:CentOS7部署.Net5项目到Docker中 https://www.cnblogs.com/Jerrycjc/p/15135882.html 本机环境:win10,已安装好docker,新建一个基于.net5的webapi项目 设置Dockerfile FROM mcr.micros
阅读全文
摘要:转自https://www.cnblogs.com/yaotome/p/10657070.html Visual Studio 2019 EnterpriseBF8Y8-GN2QH-T84XB-QVY3B-RC4DFVisual Studio 2019 ProfessionalNYWVH-HT4XC
阅读全文
摘要:C#类模板地址:C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ItemTemplates\CSharp\Code\2052\WebClass\Class.cs
阅读全文
摘要:企业版Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF 专业版Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
阅读全文
摘要:参考http://www.cnblogs.com/jesse2013/p/async-and-await.html 事例: static void Main(string[] args) { for (int i = 0; i GetNameAsync() { // 这里还是主线程 Conso...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { ...
阅读全文
摘要:小记: 引用Quartz、Topshelf、Topshelf.Quartz 使用方法: http://www.cnblogs.com/mushroom/p/4952461.html http://www.cnblogs.com/jys509/p/4614975.html 任务调度: http://w
阅读全文
摘要:protected static object MObjLock = new object();//同步锁 public string GetData(int mId) { Monitor.Enter(MObjLock);//lock string data = string.Empty; ...
阅读全文
摘要:Uri uri = Request.UrlReferrer;
阅读全文
摘要:摘自网络 static void Main(string[] args) { //各物品的概率保存在数组里 float[] area = new float[4]{ 0.5f, 0.5f, 0, ...
阅读全文
摘要:一般应用程序: using Newtonsoft.Json; using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; namespac...
阅读全文
摘要:public List DeleteList(List list) { foreach (var item in list) { if (删除条件) { list.Remove(item); ...
阅读全文


浙公网安备 33010602011771号