DateTime Parsing and Formatting with Time Zones [Anthony Moore]

Here is a new DateTim FAQ entry. What is the relationship between DateTime parsing and formatting and the time zone? Before reading below, see this entry for a more practical description of how to using formatting and parsing for the purposes of storing dates and times, which is where you are most likely to have…


A short note about Buffer.BlockCopy [Gang Peng]

Buffer.BlockCopy has following signature: public static void BlockCopy(Array src,  int srcOffset,  Array dst,  int dstOffset,  int count);   It copies count bytes from src, beginning at srcOffset, to dst, beginning at dstOffset. srcOffset is the byte offset into src and dstOffset is the byte offset into dst.   Buffer.BlockCopy only supports array of primitive types…


Get More information about Processes [Gang Peng]

System.Diagnostics.Process class provides APIs to get lots of information about Process, but it doesn’t expose a few capabilities. For example, you can’t get information about the session id or the owner of a process. We will be exploring additional functionality after the Whidbey release. In the meantime, http://msdn.microsoft.com/msdnmag/issues/02/06/debug/default.aspx is a good article about how to…


System.Collections.ArrayList performance analysis

ArrayList is one of the most commonly used data structure. However there is little information about ArrayList performance characteristics on MSDN. The document on MSDN does mention asymptotic complexity of some methods on ArrayList class, but it doesn’t talk about how ArrayList is implemented internally. In this document, I will describe the cost of using…


Managed Service Timeout during startup [Gang Peng]

It is not an easy job to write a windows service in unmanaged. There are many guidelines you need to follow to make the service work. Programming Server-Side Applications for Microsoft Windows 2000 is good reference to learn how to write a windows service.   It is much easier to writing a service in managed code using…