Map
Index
Random
Help
th

Quote: the try-parse pattern reports failure instead of an exception; avoids performance problem for a common scenario

QuoteRef: cwalK_2006 , p. 204



Topic:
exception handling by try..catch
Topic:
failure returning functions and expressions

Quotation Skeleton

Try-Parse Pattern … public static bool TryParse(string dateTime, out DateTime result){ … } When using this pattern, it is important … than the well-defined try, the member must still … performance problems related to exceptions. JEFFREY RICHTER I … DateTime.TryParse, the Dictionary class has a TryGetValue method. …   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: exception handling by try..catch (53 items)
Topic: failure returning functions and expressions (24 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.