Sign In
BCL Team Blog
Base types, Collections, Diagnostics, IO, RegEx...
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.NET Framework 3.5
.NET Framework 4
.NET Framework 4.5 Preview
API
BCL Refresher
CodeDom
compress
Contracts
datatype
Generics
Globalization
managed
MEF
News
parsing
RegEx
Service
Silverlight
System.Collections
System.Diagnostics
System.IO
System.Resources
System.Threading
Win32
ZIP
Options
Blog Home
About
Share this
RSS for posts
Atom
RSS for comments
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Archive
Archives
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)
Kick Off the Blog with a TryParse sample!
MSDN Blogs
>
BCL Team Blog
>
Kick Off the Blog with a TryParse sample!
Kick Off the Blog with a TryParse sample!
BCL Team
22 Oct 2003 6:20 PM
Comments
7
Well, I though I would kick off the BCL blog with a sample of TryParse. TryParse methods have been added to all the base datatypes in Whidbey (previously, TryParse was only available on the Double type). The
TryParse demo
is available on the
new BCL website
. The demo allows you to compare the speed of Parse on certain types, to TryParse, and clearly demonstrates why you should prefer TryParse!
7 Comments
parsing
,
datatype
Comments
Frank Hileman
3 Nov 2003 10:21 AM
I am very happy to see this being addressed!
Kit George [MSFT]
7 Nov 2003 3:31 PM
Thanks Frank!
julie lerman
23 Jan 2004 11:43 AM
Hey Kit, if I wanted to categorize parse and tryparse, are they from the Microsoft.Jscript.IParseText interface?
www.xaml.net
26 Mar 2004 10:08 AM
I guess TryParse is a Whidbey feature, in .net 1.1, this works:
Regex.IsMatch(datapointer, @"^[-+]?[0-9]\d*\.?[0]*$")
C# Frequently Asked Questions
31 May 2004 1:42 PM
Kirk Allen Evans' Blog
5 Oct 2004 3:27 PM
TryParse and the Exception Tax « Articulos en venta en Mercado Libre
12 Jun 2007 12:13 PM
PingBack from
http://novaxo.wordpress.com/2007/06/12/tryparse-and-the-exception-tax/
Page 1 of 1 (7 items)