摘要: cmd 管理员运行 执行 reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender” /v “DisableAntiSpyware” /d 1 /t REG_DWORD /f 重启电脑 阅读全文
posted @ 2019-01-18 15:10 加号和减号 阅读(1809) 评论(0) 推荐(0) 编辑
摘要: F1进入BIOS界面 将intel speedstep设置为禁用 将CPU Power Manager设置为禁用 重启电脑 电脑不再发热 阅读全文
posted @ 2019-01-17 22:26 加号和减号 阅读(10219) 评论(1) 推荐(0) 编辑
摘要: sqlserver字符串拆分(split)方法汇总 --方法0:动态SQL法declare @s varchar(100),@sql varchar(1000)set @s='1,2,3,4,5,6,7,8,9,10'set @sql='select col='''+ replace(@s,',', 阅读全文
posted @ 2017-02-27 16:21 加号和减号 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 我们新建一个MVC的项目 默认的路由是这样的,但是由于一些需求,我们需要对Controllers按照一些规则分类。 比如说我们在Controllers下面建了一个School的文件夹,然后建了一个Student的控制器。 然后我们运行项目,当然默认访问的还是Home/Index这个页面,这时我们可以 阅读全文
posted @ 2017-02-11 16:42 加号和减号 阅读(7823) 评论(0) 推荐(2) 编辑
摘要: /// /// 反射赋值 /// public class ObjectReflection { public static PropertyInfo[] GetPropertyInfos(Type type) { return type.GetProperties(BindingFlags.Public | BindingFlags... 阅读全文
posted @ 2017-01-03 11:55 加号和减号 阅读(6871) 评论(0) 推荐(1) 编辑
摘要: public static void AppendTextColorful(this RichTextBox rtBox, string text, Color color, bool addNewLine = true) { if (addNewLine) { text += Environment.NewLine;... 阅读全文
posted @ 2017-01-03 11:50 加号和减号 阅读(5391) 评论(0) 推荐(0) 编辑
摘要: 在frmMain类中的代码 private void StartRun(string tag, string date, bool tipType) { var dllPath = string.Format("{0}.{1}", GetType().Namespace, tag); var assembly = Assembly.Load... 阅读全文
posted @ 2017-01-03 11:46 加号和减号 阅读(1575) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Reflection;using System.Text;using System.Threadin... 阅读全文
posted @ 2016-10-06 12:54 加号和减号 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.使用Forms验证存储用户自定义信息 Forms验证在内部的机制为把用户数据加密后保存在一个基于cookie的票据FormsAuthenticationTicket中,因为是经过特殊加密的,所以应该来说是比较安全的。而.net除了用这个票据存放自己的信息外,还留了一个地给用户自由支配,这就是现在要说的UserData。 UserData可以用来存储string类型的信息,并且也享受Forms验... 阅读全文
posted @ 2016-09-28 11:27 加号和减号 阅读(146) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Concurrent;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks; namespace AA{ public class... 阅读全文
posted @ 2016-09-22 21:05 加号和减号 阅读(1668) 评论(0) 推荐(0) 编辑