Base types, Collections, Diagnostics, IO, RegEx…
The MEF team has been quietly at work for some time getting the finishing touches on another developer preview. You can download the new source and .NET 4.0-compatible binaries from the Codeplex site.
The most commonly used methods for parsing textual data into DateTime or DateTimeOffset values are different overloads of DateTime.Parse and DateTimeOffset.Parse. However, for many formats these methods throw a FormatException when they attempt to perform the conversion, and their corresponding TryParse overloads all return false. The .NET Framework provides two alternative method families: ParseExact and TryParseExact, that can be used to parse the string representations of date and time values. This article explores their usage.
Regular expressions in the .NET Framework support a number of grouping constructs, which allow a regular expression pattern to be grouped into one or more subexpressions. Grouping constructs are essential for creating backreferences, as well as for defining a subexpression to which a quantifier is applied.