The Compare Contract [Kim Hamilton]

A breaking change? We recently heard from a customer who observed different sorting behavior in .NET FX 3.5 SP1 compared to 3.5 RTM. The different behavior was demonstrated with the following code. The class StringWrapper provided a custom sort in which nulls (null StringWrapper references) were moved to the end of the array. To achieve…

13

.NET Framework Client Profile [Justin Van Patten]

Last week Soma and Scott Guthrie announced the availability of Visual Studio 2008 and .NET Framework 3.5 SP1 Beta.  As part of this release, we’re introducing the .NET Framework Client Profile, a smaller .NET Framework redist optimized for .NET client applications.  The new redist weighs in at around 26.5 MB, enabling a smaller, faster, more…

71

.NET Framework 3.5 Now Available! [Justin Van Patten]

.NET Framework 3.5 and Visual Studio 2008 have officially shipped!  Soma has the announcement on his blog and the downloads are available here. There’s over 250 new features in .NET 3.5 and Visual Studio 2008.  Here’s a list of new BCL features available in .NET 3.5: System.DateTimeOffsetA new date time data structure that can specify…

10

Change in System.ServiceProcess shutdown is coming in 3.5 RTM [Inbar Gazit]

In all current versions of the Framework we do not close the actual service when we get a shutdown request from the OS. Instead we just call OnShutdown and hope that the user has overridden this method and called Stop() themselves. We found out that many developers didn’t know they had to do that and…

8

Microsoft .NET Framework 3.5 Beta 2 is Now Available [Inbar Gazit]

In case you have not heard, we recently released the latest pre-release version of the Microsoft .NET Framework 3.5 (previously code named “Orcas”). You are encouraged to download and try it, available here: .NET Framework 3.5 Beta 2 There are no new features in this version as far as the BCL is concerned but there…

11

A Brief History of DateTime Follow-up [Anthony Moore]

Thanks all for the feedback on A Brief History of DateTime. Thanks Justin for responding to most of this. I can elaborate on some of the issues raised: >> (3) Was there any consideration given in the design process around making DateTimeOffset an (immutable) reference type? We did not really consider this because unless something…

11

A Brief History of DateTime [Anthony Moore]

For the .NET 3.5 release, the BCL team has been trying to solve some problems related to dates, times and time zones that customers having been asking us to address for some time. We’ve invested in two significant features: TimeZoneInfo: Extended Time Zone Support. This allows for enumeration, conversion and serialization of a time zones…

27

DateTimeOffset: A New DateTime Structure in .NET 3.5 [Justin Van Patten]

One thing we haven’t publicized much on this blog yet is a new date time structure we’ve added in .NET 3.5 called DateTimeOffset (currently available as part of .NET Framework 3.5 Beta 1).  Kathy mentioned it on her blog a while back and Daniel Moth recently posted about it as well. DateTimeOffset DateTimeOffset is a…

18

System.TimeZoneInfo: Working with Ambiguous and Invalid Points in Time [Josh Free]

System.TimeZoneInfo (currently available as part of .NET Framework 3.5 Beta 1) contains methods for checking if a DateTime instance represents an ambiguous or invalid time in a specific time zone. These methods are particularly useful for validating user-supplied points in time. Background Information Time zones that adjust their time for Daylight Saving Time (in most…

4

Exploring Windows Time Zones with System.TimeZoneInfo [Josh Free]

The main feature of the System.TimeZoneInfo class (previously named System.TimeZone2 in CTPs prior to .NET Framework 3.5 Beta 1) is to enable .NET developers to seamlessly work with Windows time zones in their applications. This includes enabling .NET applications to take advantage of the new Windows Vista Dynamic Daylight Saving Time functionality, which allows the…

21