会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JohnYang
定心者,勇猛精进,终获证果(https://johnsite.157489.xyz/)
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
30
下一页
2024年7月23日
ListBox横向排布Item
摘要: <Window x:Class="TwoColumnListBox.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/
阅读全文
posted @ 2024-07-23 13:45 JohnYang819
阅读(19)
评论(0)
推荐(0)
2024年5月12日
旧电脑更流畅的操作
摘要: (1)任务管理器 (2)chkdsk (3)sfc/scannow
阅读全文
posted @ 2024-05-12 19:14 JohnYang819
阅读(41)
评论(0)
推荐(0)
2024年4月27日
AssemblyResolve巧解未能加载文件或程序集“Newtonsoft.Json, Version=6.0.0.0的问题
摘要: 问题:未能加载文件或程序集“Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个... 问题分析: 原因是因为引用的Microsoft.AspNet.SignalR.Clie
阅读全文
posted @ 2024-04-27 10:05 JohnYang819
阅读(857)
评论(0)
推荐(0)
2024年4月26日
SignalR服务端嵌入到WPF
摘要: 用的是.net framework 4.7.2的WPF。 <Window x:Class="EBServerTry.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:
阅读全文
posted @ 2024-04-26 13:25 JohnYang819
阅读(179)
评论(0)
推荐(0)
2024年4月4日
"NU1605: 错误形式的警告: 检测到包降级"的解决办法
摘要: 这两行的意思是需要我们升级Maui.Controls的版本在8.0.14,取高版本。 同理,再次进行: 最后:
阅读全文
posted @ 2024-04-04 08:16 JohnYang819
阅读(704)
评论(0)
推荐(0)
2024年3月20日
C#之Lazy<T>
摘要: Lazy<T>主要用在单例模式,是一种延迟加载(Lazy Loading)的机制,它允许您推迟对象的创建直到第一次访问该对象。这种方式在需要时才分配资源,能够提高性能和资源利用率。Lazy类提供了一个简单且线程安全的方法来实现延迟加载。以下是Lazy的一些主要特点和用法: 延迟加载:Lazy允许您将
阅读全文
posted @ 2024-03-20 23:35 JohnYang819
阅读(748)
评论(0)
推荐(0)
2024年3月19日
C#正则之获取命名组所有捕获的数据
摘要: static void ParseTest(string str) { Regex reg = new Regex(@"(?<num>\d+)(?<sg>[_!$#])(?<dia>\d+)\s?((?<frn>\d+)(\/(?<nrn>\d+))*)?"); var m = reg.Match(
阅读全文
posted @ 2024-03-19 13:26 JohnYang819
阅读(117)
评论(0)
推荐(0)
2024年2月29日
C#之并发字典
摘要: internal class Program { const string Item = "Dictionary item"; const int Iterations = 1000000; public static string CurrentItem; static void Main(str
阅读全文
posted @ 2024-02-29 23:01 JohnYang819
阅读(119)
评论(0)
推荐(0)
2024年1月21日
ASP.NET Core之Razor Page相关
摘要: cshtml一般是这样: @page @model IndexModel @{ ViewData["Title"] = "Home page"; } <div class="text-center"> <h1 class="display-4">Welcome</h1> <p>Learn about
阅读全文
posted @ 2024-01-21 10:55 JohnYang819
阅读(126)
评论(0)
推荐(0)
2024年1月16日
.NET中使用CommonOpenFileDialog【打开文件夹】
摘要: install-package WindowsAPICodePack var folderDialog = new CommonOpenFileDialog() { Title = "xxx", IsFolderPicker = true, }; if (folderDialog.ShowDialo
阅读全文
posted @ 2024-01-16 21:44 JohnYang819
阅读(333)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
30
下一页