Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Blog - Title
MSDN Blogs
>
BCL Team Blog
Server & Tools Blogs
>
Developer Tools Blogs
>
Base Class Library Blog
Executive Bloggers
S. Somasegar
Brian Harry
Scott Guthrie
Jason Zander
Visual Studio
Visual Studio
Blend
LightSwitch
Line of Business Apps by Beth Massi
Setup & Install by Heath Stewart
Application Lifecycle Management
Visual Studio ALM
Team Foundation Service
Languages
Visual Basic
Visual C#
Visual C++
Visual F#
JavaScript
.NET Framework
.NET Framework
.NET Parallel Programming
ADO.NET (Managed Providers, DataSet & EF)
ASP.NET by Scott Hanselman
Base Class Library (BCL)
Silverlight
WCF Data Services
Workflow
Platform Development
Internet Explorer
Apps for Office and SharePoint 2013
SharePoint
Office
Web
Windows 8
Windows Store
Windows Azure
Windows Phone
Base Class Library (BCL) Blog
Base types, Collections, Diagnostics, IO, RegEx…
Subscribe
Comments
Contact
Menu
Blog Home
Atom
Translate this page
Powered by
Microsoft® Translator
Live Now on Developer Tools Blogs
Tags
.NET Framework 3.5
.NET Framework 4
.NET Framework 4.5
API
BCL Refresher
CodeDom
Contracts
datatype
Generics
Globalization
Immutable
managed
MEF
News
NuGet
parsing
RegEx
Service
Silverlight
System.Collections
System.Diagnostics
System.IO
System.Resources
System.Threading
Win32
More
▼
Less
▲
Related resources
Visual Studio Developer Center
Visual Studio Product Website
Archives
Archives
April 2013
(2)
March 2013
(2)
February 2013
(1)
January 2013
(1)
December 2012
(1)
October 2012
(1)
August 2012
(1)
June 2012
(2)
May 2012
(2)
April 2012
(2)
March 2012
(1)
December 2011
(2)
November 2011
(4)
October 2011
(2)
June 2011
(1)
May 2011
(2)
April 2011
(2)
March 2011
(1)
January 2011
(1)
November 2010
(1)
October 2010
(1)
August 2010
(1)
July 2010
(1)
June 2010
(2)
May 2010
(1)
April 2010
(1)
March 2010
(1)
January 2010
(1)
November 2009
(1)
October 2009
(1)
August 2009
(1)
July 2009
(2)
June 2009
(1)
May 2009
(1)
February 2009
(3)
January 2009
(1)
November 2008
(2)
October 2008
(2)
July 2008
(1)
June 2008
(3)
May 2008
(1)
April 2008
(1)
January 2008
(1)
November 2007
(4)
October 2007
(2)
August 2007
(3)
July 2007
(3)
June 2007
(7)
May 2007
(5)
April 2007
(4)
March 2007
(2)
February 2007
(1)
January 2007
(2)
December 2006
(1)
November 2006
(2)
October 2006
(8)
September 2006
(2)
August 2006
(3)
July 2006
(7)
June 2006
(5)
May 2006
(11)
April 2006
(16)
March 2006
(1)
January 2006
(1)
October 2005
(6)
September 2005
(5)
August 2005
(3)
July 2005
(2)
June 2005
(5)
April 2005
(3)
March 2005
(41)
February 2005
(7)
January 2005
(4)
December 2004
(8)
November 2004
(14)
October 2004
(9)
September 2004
(6)
August 2004
(6)
July 2004
(1)
June 2004
(2)
May 2004
(3)
March 2004
(2)
January 2004
(15)
December 2003
(3)
November 2003
(9)
October 2003
(5)
More
▼
Less
▲
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
BCL Team Blog
SerialPort Encoding [Ryan Byington]
Posted
over 7 years ago
by
BCL Team
6
Comments
The SerialPort class uses the encoding specified by the SerialPort.Encoding property to convert strings and character arrays to bytes to send across the serial port. This encoding also gets used when reading from the serial port to convert bytes received...
BCL Team Blog
Why does Double.Parse(Double.MaxValue.ToString()) not work? [Anthony Moore]
Posted
over 7 years ago
by
BCL Team
1
Comments
System.Double and System.Single are have inexact precision of decimal digits because internally they are a floating point binary number. As such, beyond a certain number of significant digits, their decimal representation becomes approximate. The standard...
BCL Team Blog
Generic List enumerator order [Vance Morrison]
Posted
over 7 years ago
by
BCL Team
1
Comments
“Is the order returned by the List<T> enumerator guaranteed to be the same as looping through with a for loop?” Since foreach is actually defined in terms of looping over the ‘MoveNext’ operation of the enumerator, foreach is guaranteed to be...
BCL Team Blog
SerialPort and DataReceived Event [Ryan Byington]
Posted
over 7 years ago
by
BCL Team
2
Comments
I have seen a few customers complain that their DataReceived event handler was never getting called and I thought I would share their problems here so you can learn from their mistakes. The problems revolve around the port not being open. This is sometimes...
BCL Team Blog
Testing the Base Class Library [Lakshan Fernando]
Posted
over 7 years ago
by
BCL Team
1
Comments
The test role at Microsoft generally and in the BCL team specifically is somewhat different from a traditional test position in the software industry. We release software for developers and the test team considers themselves as frontline developers that...
BCL Team Blog
Using a MemoryStream with GZipStream [Lakshan Fernando]
Posted
over 7 years ago
by
BCL Team
8
Comments
We’ve seen cases where our customers have run into issues when using a MemoryStream with GZip compression. The problem can be frustrating to debug and I thought I’ll blog about it in the hope that others would avoid a similar issue. The code for this...
BCL Team Blog
Breaking changes and the BCL [Ari Weinstein]
Posted
over 7 years ago
by
BCL Team
7
Comments
One of the areas that I have been involved in for the past half year is application compatibility. Since then I have a number of emails from our .NET 2.0 compatibility alias ( netfxcmp@microsoft.com -let us know if you have any compat questions!) with...
BCL Team Blog
Using FileStream from Restricted User Accounts [Josh Free]
Posted
over 7 years ago
by
BCL Team
5
Comments
Every so often, I run into code that requests security permissions that are not needed. Take the following code snippet as an example: // open the file for reading FileStream fs1 = new FileStream ( @"C:\Program Files\SomeFile.bin...
BCL Team Blog
Set Collection [Ryan Byington]
Posted
over 7 years ago
by
BCL Team
17
Comments
So the BCL thinking of implementing a set collection for a future release and we would like to get you our blog reading public opinion on what scenarios are important to you for a Set collection. The collection will likely have the standard ICollection<T>...
BCL Team Blog
Reading a file in Managed Code [Lakshan Fernando]
Posted
over 7 years ago
by
BCL Team
2
Comments
Some of our new users to managed code take a little time to get used to the design pattern in reading a file. I thought I’ll enumerate through the most common patterns for their benefit; Reading from a FileStream : Create a suitable buffer size...
BCL Team Blog
Why IComparable<T> does not extend IEquatable<T> [Krzysztof Cwalina]
Posted
over 7 years ago
by
BCL Team
2
Comments
Recently, somebody asked me why IComparable<T> does not extend IEquatable<T>. Here is this piece of history. When we were designing IComparer<T> and IEqualityComparer<T>, we observed that these two interfaces are rarely ...
BCL Team Blog
IComparable and Sort in generic collection [KathyKam]
Posted
over 7 years ago
by
BCL Team
4
Comments
Someone asked me why you cannot pass in the non-generic IComparer to a generic collection (something like List<T>). Particularly, if a programmer using the .NET 2.0 framework and generic List (aka List<T>) is unable to pass custom legacy ...
BCL Team Blog
Why do unexpected Timer Elapsed Events fire in my application? [Josh Free]
Posted
over 7 years ago
by
BCL Team
4
Comments
General Timer Background Information The System.Timers.Timer class provides a convenient way for .NET programmers to create a timer thread that fires events after elapsed time intervals. For more details on using System.Timers.Timer please refer to...
BCL Team Blog
Installing a Managed Service with a Custom Name (Part 4 of 4) [Robert Villahermosa]
Posted
over 7 years ago
by
BCL Team
0
Comments
Bringing it all together Ok, that’s it for the explanation – let’s see how to actually run all this and watch it work. Here are the steps to follow: 1.) Create a simple service that we want to install 2.) Create a ProjectInstaller class specifying...
BCL Team Blog
Installing a Managed Service with a Custom Name (Part 3 of 4) [Robert Villahermosa]
Posted
over 7 years ago
by
BCL Team
0
Comments
What happened to specifying a custom name? Ahh, I haven’t forgotten – this post was created to see how to let the user choose their own custom service name. Notice how I’ve hooked up two eventhandlers in my Project Installer code. BeforeInstall gets...
BCL Team Blog
Installing a Managed Service with a Custom Name (Part 2 of 4) [Robert Villahermosa]
Posted
over 7 years ago
by
BCL Team
6
Comments
The Installer class Now that we have our simple service to install, let’s take a look at how we can install it. Custom installers in the .NET Framework all derive from the Installer class. There are several methods that you can override in this...
BCL Team Blog
Installing a Managed Service with a Custom Name (Part 1 of 4) [Robert Villahermosa]
Posted
over 7 years ago
by
BCL Team
6
Comments
An interesting customer question came to my attention a few weeks ago. The customer had created a managed service, and was installing it with a custom name that was provided at install time by the user. I’ve seen several customer applications that do...
BCL Team Blog
BCL Bloggers [Kathy Kam & Krzsyztof Cwalina]
Posted
over 7 years ago
by
BCL Team
0
Comments
Krzysztof Cwalina and Kathy Kam are two BCL Program Managers that also have their own blogs. Krzysztof recently wrote about extending System.Diagnostics tracing APIs in the April Issue of MSDN Magazine . Kathy recently wrote an introduction to format...
BCL Team Blog
Want to peek inside Common Language Runtime? [Ravi Krishnaswamy]
Posted
over 7 years ago
by
BCL Team
6
Comments
Today CLR reveals certain key gc, threadpool events via ETW but nothing interesting besides that. If we were to design a larger scale instrumentation, - What kind of information/events you would like to see? - What kind of higher level bucketing...
BCL Team Blog
Creating and Initializing Objects in CodeDom [Benet Devereux]
Posted
over 7 years ago
by
BCL Team
13
Comments
The Forms Designer in Visual Studio 2005 takes away a lot of the drudgery of GUI development. All you do is drag and drop the components you need onto a panel, arrange them where you want them, and VS will generate the code to initialize them automatically;...
BCL Team Blog
No Virtual Members on Generic Collections [Ryan Byington]
Posted
over 7 years ago
by
BCL Team
5
Comments
A customer asked me why we decided to make the members on our generic collection non virtual when every member on the non generic collections was virtual. I though other might be interested in this so I decided to answer it here. When we shipped...
BCL Team Blog
What if we gave you $100 to spend? [Krzysztof Cwalina]
Posted
over 7 years ago
by
BCL Team
37
Comments
The BCL team is starting to plan our next release. Is there any base API that if you’d heard we were working on you’d say “I can’t wait to get the next version of the Framework”? Any basic data structures? Any Win32 functionality that we don’t currently...
BCL Team Blog
Time Zones in the .NET Framework [Anthony Moore]
Posted
over 7 years ago
by
BCL Team
20
Comments
The single most requested individual feature for the Base Class Libraries that has not been delivered yet is for support for Time Zones other than Local and UTC. This is a feature we are actively exploring for the next release of the .NET Framework. ...
BCL Team Blog
Relaunching the BCL Weblog [Kathy Kam]
Posted
over 7 years ago
by
BCL Team
6
Comments
We’ve taken a break on blogging since shipping Whidbey. As our team is gearing up for Orcas, we decided that it’s time that we blog again and engage our community. If you have a particular topic that you want to see or hear about, let us know. We are...
BCL Team Blog
Opportunities on the CLR documentation team! [Kathy Kam]
Posted
over 7 years ago
by
BCL Team
3
Comments
After the release of a major product (i.e. Whidbey), opportunities frequently opens up on the team. This time, we have two open position in our User Experience team. It has been said many times that good and accurate documentation is priceless. Come help...
Page 6 of 13 (310 items)
«
4
5
6
7
8
»