How event handlers are implemented in C#.

Event handlers are methods that are executed in response to specific events that the component receives.   The following are notes of my reading of “How events are implemented” section of CLR via C# by Jeffrey Richter. Event handler in C# are implemented via Delegates. public event EventHandler<NewMailEventArgs> NewMail; For example, the above single line of…

0

How to encode non-ASCII characters in XML.

XML is the most widely used file format in computer world. What if you have a character that is not ASCII, how to put it into the XML? The answer is simple, encode it either in character entity or in unicode. Here is an example of encoding the character using character entity, ; is encoded as &amp;…

0

What are we doing here at Health Solutions of Microsoft?

  This is what we are doing here at Health Solutions. How exciting it is…… Our product includes Microsoft HealthVault (http://www.healthvault.com), Microsoft Amalga (http://www.microsoft.com/amalga/) and newly acquired Sentillion(http://www.sentillion.com).

0

How to import UTF8 encoded string into SQL server using BCP utility?

The short answer is no. SQL server BCP utility is not capable of recognizing UTF8 encoded string correctly, even worse, it won’t report any error, it will simply treat UTF8 encoded string as ASCII encoded string. These string will become unrecognizable characters in SQL Server. As a result, I usually convert UTF8 encoded bcp file…

0

The performance comparison between methods to convert an Xml tree to a string within .NET framework.

In web service enviroment, it is often necessary to convert the Xml tree to a string in order to calculate the hash or digital signature. NET framework provides several classes to parse XML document, each one has its own strength, here we investigate the difference of performance between them on my laptop. XmlUTF8TextReader is created using XmlDictionary.CreateTextReader()…

0