var bytes = new byte[] { 0, 0, 0, 0, 0, 0, 23, 114 }; StringBuilder sb = new StringBuilder(); foreach (byte b in bytes) { sb.Append(b.ToStrin
獨孤劍
2017-09-28 16:53
閱讀:978
IIS 限制網速
獨孤劍
2017-09-28 10:51
閱讀:1007
Sys.WebForms.PageRequestManagerParserErrorException: 無法分析從服務器收到的消息。之所以出現此錯誤,常見的原因是: 在通過調用 Response.Write() 修改響應時,將啟用響應篩選器、HttpModule 或服務器跟蹤。在局部
獨孤劍
2017-09-28 10:47
閱讀:953
[HttpPost]public HttpResponseMessage Create(){string json = "{\"status\":\"success\"}";return new HttpResponseMessage { Content = new StringContent(json, System.Text.Encoding.UTF8, "application
獨孤劍
2017-09-27 09:32
閱讀:970
系統環境:Windows Server 2012 R2安裝軟件出現錯誤,Runtime error 217 at 004D0969解決方法:嘗試安裝 C++2005 Redistributable
獨孤劍
2017-09-27 08:42
閱讀:2684
"A member with the name 'UserName' already exists on 'DS.DB.Model.UserModel1'. Use the JsonPropertyAttribute to specify another name."Model 的序列化標識不能重名
獨孤劍
2017-09-26 16:32
閱讀:1131
@echo offset SVNLOOK="C:\Program Files\VisualSVN Server\bin\svnlook.exe"setlocalset REPOS=%1set TXN=%2rem check that logmessage contains at least 10 characterssvnlook log %REPOS% -t %TXN% | findstr "..
獨孤劍
2017-09-26 15:51
閱讀:1184
Shirft + ESC 退出 朗讀人
獨孤劍
2017-09-22 14:22
閱讀:1897
Winform 選擇文件、文件夾、打開指定目錄的方法
using System;
using System.Windows.Forms;namespace WindowsFormsApp1
{public partial class Form1 : Form{public Form1(){InitializeComponent();}/// /// 選擇文件
獨孤劍
2017-09-15 14:08
閱讀:1207
C# 數組, 集合, Array[], Liststatic void Main(string[] args){// Array.Joinstring[] arr = new string[] { "a", "b", "c" };string a = String.Join(",", arr);// List.JoinList list = new List();list.Add("d");
獨孤劍
2017-09-07 18:08
閱讀:6040
var uuid = Guid.NewGuid().ToString(); // 9af7f46a-ea52-4aa3-b8c3-9fd484c2af12 var uuidN = Guid.NewGuid().ToString("N"); // e0a953c3ee6040eaa9fae2b667060e09 var uuidD = Guid.NewGuid().ToString("D
獨孤劍
2017-09-04 16:26
閱讀:1083
https://nodejs.org/api/addons.htmlhttp://nodejs.cn/api/addons.html
獨孤劍
2017-09-04 15:46
閱讀:965
#define INT_MAX 0x7fffffff#define INT_MIN 0x80000000INT_MAX = 2147483647INT_MIN = -2147483648
獨孤劍
2017-09-04 14:42
閱讀:982
1秒=1000豪秒1毫秒=1000微秒1微秒=1000毫微秒1毫微秒=1納秒1納秒=10埃秒
獨孤劍
2017-09-01 16:50
閱讀:1683
C# Liststatic void Main(string[] args){// 一、List轉數組 (從List -> string[])List list1 = new List();list1.Add("str");list1.Add("hello");string[] str = list1.ToArray();// 二、數組轉List (從string[]
獨孤劍
2017-09-01 16:50
閱讀:1097