Introducing Pipes [Justin Van Patten]

The Orcas October Community Technology Preview (CTP) includes new types that make it easy for developers to use pipes from managed code.  Pipes are used for inter-process communication (IPC) between processes running on the same machine, or processes running on any other Windows machine within a network.  We’ve added support for both anonymous and named…

14

Introducing HashSet<T> [Kim Hamilton]

HashSet<T> is in our latest CTP, and you can find it in the System.Collections.Generic namespace. The naming discussion over the last month has motivated me to recap some naming highlights for HashSet, so hang in til the end if you’re interested. HashSet is an unordered collection containing unique elements. It has the standard collection operations…

31

Orcas October CTP Now Available [Justin Van Patten]

The Orcas October CTP became available for download earlier this week.  This CTP contains a couple new features from the BCL team: A new high performance set collection.HashSet is a new generic collection that has been added to the System.Collections.Generic namespace. It is an unordered collection that contains unique elements. In addition to the standard…

8

Hi from the New Guy [Matt Ellis]

As one of the newest members of the BCL team, I wanted to take some time to introduce myself.  I’m Matt Ellis and I’m the newest software design engineer on the team.  Right now some of you might be experiencing déjà vu, since only a few months ago I was saying hello as the newest…

1

Process and ServiceProcess Caching [Robert Villahermosa]

I’ve seen several questions over the last month or two about refreshing the status of certain properties on the Process and ServiceProcess classes.  I’d like to take this opportunity to take a look at an example from both these classes and see how we can resolve these issues. Issue One: Process.MainWindowHandle resturns 0, even though…

5

Hello from the New PM [Inbar Gazit]

I just stared out working for this team and I’m very excited to be part of the larger .NET Framework group and particularly part of the CLR team. Like you, I’ve been a consumer of the CLR for 4 years now and so I’m very keen on being able to switch sides and start designing…

0

Regex Class Caching Changes between .NET Framework 1.1 and .NET Framework 2.0 [Josh Free]

The .NET Framework System.Text.RegularExpressions.Regex class maintains a cache of parsed regular expressions.  The cache improves the performance of methods that create regular expressions, as the Regex class is able to avoid the cost of re-parsing and re-compiling existing regular expressions.  The cache does not affect the performance of match operations on the same input string,…

10

CLR Behavior on OutOfMemoryExceptions [Brian Grunkemeyer]

For out of memory exceptions, keep in mind that we can run out of memory in the native heaps in the process, as well as within the managed heap.  There are at least four interesting causes: Lack of available pages of memory, due to limited resources on the machine and/or competition between processes. Internal fragmentation…

7

Decimal Negative Zero Representation [Lakshan Fernando]

One of our customers wondered recently if we represent negative zero in Decimal. At first glance, it doesn’t look to be the case as seen below;    Decimal zero = Decimal.Zero;   Decimal negativeZero_1 = new Decimal(0, 0, 0, true, 0);   Decimal negativeZero_2 = -0.0m;    Decimal negativeZero_3 = Decimal.Negate(Decimal.Zero);   Console.WriteLine(“Negative Zero: {0}, {1}, {2} Positive Zero: {3}”, negativeZero_1, negativeZero_2, negativeZero_3,…

3

Top 5 SerialPort Tips [Kim Hamilton]

The SerialPort class requires some “warming up” time for our users coming from VB6 or other non-.NET backgrounds. One of the main reasons is that SerialPort and its underlying BaseStream are designed to behave similarly to other .NET streams, which (for example) means that Read() may not act as you’d expect. And of course there…

2