C#
XiuXiuwu_
个人记录代码分享,希望自己能好好更博。
展开
-
Unity获取Application字段值
【代码】Unity获取Application字段值。原创 2023-09-13 15:31:59 · 106 阅读 · 0 评论 -
Unity SendMessage的几种模式
【代码】Unity SendMessage的几种模式。原创 2023-03-06 10:43:16 · 187 阅读 · 0 评论 -
C#程序全局监听报错事件并写入log
C#程序全局监听报错事件并写入log原创 2023-02-14 10:30:24 · 417 阅读 · 0 评论 -
Unity 射线检测
【代码】Unity 射线检测。原创 2023-01-04 09:48:15 · 81 阅读 · 0 评论 -
协程IEnumerator的使用方法
【个人知识点记录】协程IEnumerator的使用方法。原创 2022-10-26 11:53:26 · 554 阅读 · 0 评论 -
c# winform获取程序运行路径的几种方式
// 获取程序的基目录。System.AppDomain.CurrentDomain.BaseDirectory// 获取模块的完整路径。System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName// 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。System.Environment.CurrentDirectory// 获取应用程序的当前工作目录。System.IO.Directory.GetCurr原创 2022-01-17 11:05:34 · 1045 阅读 · 0 评论 -
c#读取内嵌json资源并获取通过key获取value
//public static string Readjson(string key) //{ // Assembly assembly = Assembly.GetExecutingAssembly(); // String jsonfile = assembly.GetName().Name + ".Resources.softJson.json"; // Stream istr = assembly.GetManifestResourceStr...原创 2021-11-16 14:08:12 · 1018 阅读 · 0 评论 -
C# 去除byte数组里的特定值(空值)
/// <summary> /// 去掉byte[] 中特定的byte (去除不需要的空值) /// </summary> /// <param name="value">需要处理的byte[]</param> /// <param name="cut">byte[] 中需要除去的特定 byte (此处: byte cut = 0x00 ;) </param> ..原创 2021-10-20 16:19:54 · 2053 阅读 · 0 评论