会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
92
93
94
95
96
97
98
99
100
···
120
下一页
2020年10月23日
WebClient download save as the filename substring from url
摘要: static void WebClientDownLoadFileDemo() { string url = "http://dl.booktolearn.com/ebooks2/computer/gamedevelopment/9781789532050_Learning_C_Unity_2019
阅读全文
posted @ 2020-10-23 14:18 FredGrit
阅读(102)
评论(0)
推荐(0)
2020年10月22日
WebClient post url and parameters and receive server response
摘要: string URI = "http://www.myurl.com/post.php"; string myParameters = "param1=value1¶m2=value2¶m3=value3"; using (WebClient wc = new WebClient()
阅读全文
posted @ 2020-10-22 11:11 FredGrit
阅读(95)
评论(0)
推荐(0)
2020年10月21日
Window clicked the close button and just hide then click it will show
摘要: 1 this.FormClosing += AFormClosing; 2 3 4 private void AFormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) 5 { 6 if (e.CloseReaso
阅读全文
posted @ 2020-10-21 15:32 FredGrit
阅读(94)
评论(0)
推荐(0)
2020年10月14日
C# validate the string value whether it is valid json
摘要: 1 using Newtonsoft.Json; 2 using Newtonsoft.Json.Linq; 3 4 static void Main(string[] args) 5 { 6 TestJsonValid(); 7 Console.ReadLine(); 8 } 9 10 stati
阅读全文
posted @ 2020-10-14 14:54 FredGrit
阅读(157)
评论(0)
推荐(0)
Adjust the wpf application adapt to the screen size
摘要: <Window x:Class="YourApplication.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
posted @ 2020-10-14 14:17 FredGrit
阅读(81)
评论(0)
推荐(0)
2020年10月12日
C# extract ip address from url
摘要: using System.Text.RegularExpressions; static void ExtractIpDemo() { string url = "192.125.35.48\\d\\subfolder\\bsubfolder\\cfolder\\d.txt"; string ipV
阅读全文
posted @ 2020-10-12 17:27 FredGrit
阅读(116)
评论(0)
推荐(0)
2020年10月10日
C# get current line number in cs file
摘要: using System.Diagnostics; static void Main(string[] args) { ReportError(); ReportError(); ReportError(); ReportError(); Console.ReadLine(); } private
阅读全文
posted @ 2020-10-10 20:34 FredGrit
阅读(125)
评论(0)
推荐(0)
2020年9月28日
webclient download file based on url
摘要: static void WebClientDemo() { string url = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1601307877228&di=6a286ef6f2ca39ea06a54
阅读全文
posted @ 2020-09-28 21:03 FredGrit
阅读(97)
评论(0)
推荐(0)
2020年9月27日
dapper .IDbConnection.Query<T>(selectSQL);
摘要: static void DapperDemo() { string connString = ConfigurationManager.AppSettings.Get("SqlConnString"); using(IDbConnection conn=new SqlConnection(connS
阅读全文
posted @ 2020-09-27 16:13 FredGrit
阅读(454)
评论(0)
推荐(0)
2020年9月17日
Download visual studio offline installer
摘要: 1.Go to https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019 download the installer.exe
阅读全文
posted @ 2020-09-17 23:07 FredGrit
阅读(428)
评论(0)
推荐(0)
上一页
1
···
92
93
94
95
96
97
98
99
100
···
120
下一页
公告