Side-by-Side Execution
摘要:Side-by-side execution is the ability to run multiple versions of an application or component on the same computer. You can have multiple versions of the common language runtime, and multiple versions of applications and components that use a version of the runtime, on the same computer at the same
阅读全文
ASP.NET application and page life cycle
摘要:The Two step processFrom 30,000 feet level ASP.NET request processing is a 2 step process as shown below. User sends a request to the IIS:ASP.NET creates an environment which can process the request. In other words it creates the application object, request, response and context objects to process t
阅读全文
ASP.NET Compilation
摘要:ASP.NET Web Site Precompilation Overview File Handling During ASP.NET Precompilation http://msdn.microsoft.com/en-us/library/ms227430(v=VS.85).aspx
阅读全文
@ Page Directive
摘要:Defines page-specific (.aspx file) attributes used by the ASP.NET page parser and compiler. <%@ Page attribute="value" [attribute="value"...] %>AttributesAsyncMakes the page an asynchronous handler (that is, it causes the page to use an implementation of IHttpAsyncHandler t
阅读全文
ASP.NET Web server controls
摘要:ASP.NET 有三种类型的Control:ASP.NET Web server controls 、ASP.NET User Controls 和 ASP.NET Web Parts Controls。 ASP.NET Web server controls are objects on ASP.NET Web pages that run when the page is requested and that render markup to a browser. Many Web server controls resemble familiar HTML elements, such
阅读全文
Assembly binding Configuration Files
摘要:Assembly binding behavior can be configured at different levels based on three XML files: Application configuration file. Publisher policy file. Machine configuration file. These files follow the same syntax and provide information such as binding redirects, the location of code, and binding mo...
阅读全文
.Net Runtime Host
摘要:CLR 没有与任何操作系统集成,也就是说,当用户运行一个托管代码程序或者一个Native代码的程序时,OS对其是毫不知情的,所以也就没法根据其是什么类型的代码来决定是否要调用CLR来运行特定的程序。因此进程创建时必须由自己完成CLR的加载操作。 加载CLR涉及到运行库宿主(Runtime Host) 。Runtime host需要加载CLR,因此他本身至少包含是Native代码的。 Most runtime hosts consist of both unmanaged and managed code. The unmanaged hosting code loads the runtime
阅读全文
The Managed Thread Pool
摘要:The ThreadPool class provides your application with a pool of worker threads that are managed by the system, allowing you to concentrate on application tasks rather than thread management. If you have short tasks that require background processing, the managed thread pool is an easy way to take adva
阅读全文
Application Domains
摘要:Application domains are usually created and manipulated programmatically by runtime hosts. However, sometimes an application program might also want to work with application domains. For example, an application program could load an application component into a domain to be able to unload the domain
阅读全文
Silverlight Application Security Model
摘要:Silverlight code has three security levels: Transparent, SafeCritical, and Critical. Transparent code is code that cannot elevate the permissions of the call stack. This means that Transparent code can only run with the same permission level as its caller. All application code is Transparent code. .
阅读全文
WPF FAQ for me
摘要:1. Capture Mouse是怎么回事? UIElement.CaptureMouse() and Mouse.Capture() Capture mouse能够使 即使在控件之外也能够获取鼠标事件,拖,拉鼠标时最有用。 When an element captures the mouse, it receives mouse input whether or not the cursor is within its borders. 释放:UIElement.ReleaseMouseCapture() 或者Mouse.Capture(null) 注意只能获取MouseUp 与MouseD
阅读全文
Drag and Drop in WPF
摘要:Drag-and-drop operations typically involve two parties: a drag source from which the dragged object originates and a drop target which receives the dropped object. The drag source and drop target may be the same application or a different application.The type and number of objects that can be manipu
阅读全文
CLR 基本概念理解
摘要:AppDomainAppDomain可以视为一种轻量级进程,AppDomain可以像进程一样独立加载Assembly。一个Windows进程可以包含多个AppDomain。但是与进程不同的是,进程与线程有隶属关系,但是,AppDomain和进程之间是正交的,他们没有隶属关系。例如,一个进程存在两个AppDomain:ADA和ADB,对象A来自ADA,对象B来自ADB,如果A的某个方法调用了B的方法,这两个方法会在同一个线程中执行。使用AppDomain的好处创建AppDomain所需要的系统资源比创建一个Windows进程要少;同一个Windows进程内的AppDomain之间可以共享资源,如
阅读全文
C#内存回收与Dispose﹐Close﹐Finalize方法
摘要:Finalize()This method is automatically called after an object becomes inaccessible, unless the object has been exempted from finalization by a call to SuppressFinalize. During shutdown of an application domain, Finalize is automatically called on objects that are not exempt from finalization, even t
阅读全文
Corners in C#
摘要:Type.IsPointer:判断一个类型是否是一个指针。什么时候会返回true呢?Type.IsAssignableFrom(Type c): b.IsAssignableFrom(c)在以下几种情况下会返回true:b和c是同一类型;b是c的父类或者c实现的接口;c是泛型类型参数,而b表示c的约束之一;以上不符合或者c是空引用时为false;
阅读全文
C#参数传递的方式
摘要:C#中与参数有关系的关键字有三个params、ref及out paramsThe params keyword lets you specify a method parameter that takes an argument where the number of arguments is variable.No additional parameters are permitted after the params keyword in a method declaration, and only one params keyword is permitted in a method d
阅读全文
Regular Expression with .Net(不包含关于Unicode的内容)
摘要:Character Classes一个character class表示一组用于匹配输入字符串的字符集合。[character_group](Positive character group.) Matches any character in the specified character group. 例如,[1ert]将会匹配这4个字符中的任何一个[^character_group](Negative character group.) Matches any character not in the specified character group.例如,[^1ert]将会匹配除这4
阅读全文
Which thead executes an event handler ?
摘要:Using events is a common way to synchronize threaded applications. In this scenario, each thread raises an event to signal its status to the main program or other threads. Other parts of the application, outside the thread that raised the event, handle the event and process the information. NoteWhen
阅读全文
Property System in WPF
摘要:DependencyObject :The base class for all objects that have dependency properties. This class must be inherited. [Represents an object that participates in the dependency property system.]DependencyObject services and characteristics include the following:Dependency property hosting support.Attached
阅读全文
ref和out的区别
摘要:在C#中,既可以通过值也可以通过引用传递参数。通过引用传递参数允许函数成员更改参数的值,并保持该更改。若要通过引用传递参数,可使用ref或out关键字。ref和out这两个关键字都能够提供相似的功效,其作用也很像C中的指针变量。它们的区别是:1、使用ref型参数时,传入的参数必须先被初始化。对out而言,必须在方法中对其完成初始化。2、使用ref和out时,在方法的参数和执行方法时,都要加Ref或Out关键字。以满足匹配。3、out适合用在需要retrun多个返回值的地方,而ref则用在需要被调用的方法修改调用者的引用的时候。注:在C#中,方法的参数传递有四种类型:传值(by value),传
阅读全文