Assembly.Load,LoadFile,LoadFrom
摘要:在加载Assembly的时候有三种Load Context可以选择:Load Context通常来说,当通过探测 GAC,host assembly store (if hosted), 或者 the ApplicationBase / PrivateBinPaths of the AppDomain来找到指定的Assembly时,被加载到Load Context中。LoadFrom Contex...
阅读全文
BindingFlags
摘要:BindingFlagsThese BindingFlags control binding for a great many classes in the System, System.Reflection, and System.Runtime namespaces that invoke, create, get, set, and find members and types.The binding flags can be categorized by how they identify a type member, as listed in the following table.
阅读全文
UI Automation in WPF/Silverlight
摘要:ConceptsPeer: 每个Control类有一个Peer类,这个Peer类expose其对应的Control给UI Automation. Each AutomationPeer exposes the corresponding Microsoft .NET Framework control to Microsoft UI Automation.Control Pattern:Control patterns provide a way to categorize and expose a control's functionality independent of the
阅读全文
Silverlight AV
摘要:VideoRaw VideoYV12 - YCrCb(4:2:0)RGBA - 32 bit Alpha Red, Green, BlueWMV1: Windows Media Video 7WMV2: Windows Media Video 8WMV3: Windows Media Video 9Supports Simple and Main Profiles.Supports only progressive (non-interlaced) content.WMVA: Windows Media Video Advanced Profile, non-VC-1WVC1: Windows
阅读全文
Expression in C#
摘要:The System.Linq.Expressions namespace contains classes, interfaces and enumerations that enable language-level code expressions to be represented as objects in the form of expression trees. 也就是使用该命名空间中的类可以将一段代码表示为对象。在System.Linq.Expressions中,列举了很多种的表达式,其中包括:BinaryExpression,ConditionalExpression,Con
阅读全文
Timer in C# (2)
摘要:System.Windows.Threading.DispatcherTimerA timer that is integrated into the Dispatcher queue which is processed at a specified interval of time and at a specified priority. The DispatcherTimer is reevaluated at the top of every Dispatcher loop.Timers are not guaranteed to execute exactly when the ti
阅读全文
Timer in C#(1)
摘要:There are 3 different Timers in C# System.Windows.Forms.Timer System.Threading.Timer System.Timers.Timer I will introduce them separately 1. System.Windows.Forms.Timer A Timer is used to raise an eve...
阅读全文
Cross-Domain Network connection in Silverlight
摘要:Basics:1. Before allowing a connection to a network resource, the Silverlight runtime will try to download a security policy file from the domain that hosts the network resource. There are two different methods used to download the security policy that depend on whether the connection request was fr
阅读全文
Windowless mode for Silverlight
摘要:When you use windowless mode with the Silverlight plug-in, you are effectively telling the browser to render your Silverlight content directly, instead of giving the plug-in its own window for renderi...
阅读全文
Why c++ has friend members while C# does not have this?
摘要:First, let us examine how the Controlling Access to Class Members is defined:Member-Access Control Type of AccessMeaningprivateClass members declared as private can be used only by member functions and friends (classes or functions) of the class.protectedClass members declared as protected can be us
阅读全文