文章分类 - C#
摘要:DLLWrapper using System; using System.Runtime.InteropServices; namespace Myapp { public class DLLWrapper { ///<summary> /// API LoadLibrary ///</summa
阅读全文
摘要:关键类 SpeechSynthesizer using System.Speech.Synthesis; filePath = Path.Combine(filePath, $"{fileName}.wav"); //string filePath = _hostingEnvironment.Con
阅读全文
摘要:基本思路 用系统函数SHGetFileInfo获得文件信息,如图标、大小、更新日期等,放入TreeView控件 SHGetFileInfo如下: /// <summary> 返回系统设置的图标 </summary> /// <param name="pszPath">文件路径 如果为"" 返回文件夹
阅读全文
摘要:Console.WriteLine("Directory.GetCurrentDirectory() " + Path.Combine(Directory.GetCurrentDirectory(), "wwwroot").ToString()); Console.WriteLine("Enviro
阅读全文
摘要:UseForwardedHeaders 未开启 //httpContext.GetRemoteIPAddress() 192.168.8.16 //httpContext.Connection.RemoteIpAddress 127.0.0.1 Accept = */* Connection = c
阅读全文