![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.Net
John_ZhouJQ
路漫漫其修遠兮。。。
展开
-
Log4Net
xml version="1.0"?> configuration> configSections> section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> configSections>原创 2016-09-26 10:53:08 · 279 阅读 · 0 评论 -
.Net 异常处理
在C#中,当出现某种异常时,就会创建一个异常对象。这个对象包含有助于跟踪问题的信息。 我们可以创建自己的异常类,但.NET已经提供了许多预定义的异常类 异常类Exception SystemException 这个是由公共语言运行库引发的异常,派生于systemExecption类 ApplicationException 由用户程序执行的异常,派生于ApplicationE转载 2016-09-26 10:58:09 · 314 阅读 · 0 评论 -
Log4Net 慢慢研究
Apache log4net™ Manual - Configuration Configuration Inserting log requests into the application code requires a fair amount of planning and effort. Observation shows that approximately 4 perc翻译 2016-09-26 22:44:19 · 649 阅读 · 0 评论 -
DataTable 学习笔记
DataView RowFilter Syntax [C#] This example describes syntax of DataView.RowFilter expression. It shows how to correctly build expression string (without „SQL injection“) using methods to escape原创 2016-09-28 21:21:11 · 274 阅读 · 0 评论 -
WinForm 多线程操作UI
单线程的winfom程序中,设置一个控件的值是很easy的事情,直接 this.TextBox1.value = "Hello World!";就搞定了,但是如果在一个新线程中这么做,比如: private void btnSet_Click(object sender, EventArgs e) { Thread t = new Thread(new Paramet转载 2016-11-28 09:54:41 · 7267 阅读 · 0 评论 -
.NET 调用存储过程详解
1. 返回单一记录集的存储过程 SqlConnection conn = new SqlConnection(ConStr); SqlCommand cmd = new SqlCommand(); cmd.Connection = conn; cmd.CommandText = "Categoriestest1"; // 指定执行语句为存储过程 cmd.CommandTy转载 2017-02-17 09:19:43 · 1053 阅读 · 0 评论 -
PRB: ThreadAbortException Occurs If You Use Response.End, Response.Redirect, or Server.Transfer
Symptoms If you use the Response.End, Response.Redirect, or Server.Transfer method, a ThreadAbortException exception occurs. You can use a try-catch statement to catch this exception.转载 2017-02-21 13:05:55 · 267 阅读 · 0 评论 -
MEF学习
一、 什么是MEF MEF(Managed Extensibility Framework)是一个用于创建可扩展的轻型应用程序的库。 应用程序开发人员可利用该库发现并使用扩展,而无需进行配置。 扩展开发人员还可以利用该库轻松地封装代码,避免生成脆弱的硬依赖项。 通过 MEF,不仅可以在应用程序内重用扩展,还可以在应用程序之间重用扩展。(摘自MSDN) 我的理解:应用/插件均转载 2017-07-25 10:34:06 · 290 阅读 · 0 评论 -
[MethodImpl(MethodImplOptions.Synchronized)]、lock(this)与lock(typeof(...))
对于稍微有点经验的.NET开发人员来说,倘若被问及如何保持线程同步,我想很多人都能说好好几种。在众多的线程同步的可选方式中,加锁无疑是最为常用的。如果仅仅是基于方法级别的线程同步,使用System.Runtime.CompilerServices.MethodImplAttribute无疑是最为简洁的一种方式。MethodImplAttribute可以用于instance method,也可以用于转载 2017-07-27 16:03:44 · 620 阅读 · 0 评论