Eric Gunnerson
Posts: 1006
Nickname: ericgu
Registered: Aug, 2003
|
Eric Gunnerson is a program manager on the Visual C# team
|
|
|
|
C# - What's wrong with this code? - #1
|
Posted: Nov 12, 2004 8:53 AM
|
|
|
This post originated from an RSS feed registered with .NET Buzz
by Eric Gunnerson.
|
Original Post: C# - What's wrong with this code? - #1
Feed Title: Eric Gunnerson's C# Compendium
Feed URL: /msdnerror.htm?aspxerrorpath=/ericgu/Rss.aspx
Feed Description: Eric comments on C#, programming and dotnet in general, and the aerodynamic characteristics of the red-nosed flying squirrel of the Lesser Antilles
|
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Eric Gunnerson
Latest Posts From Eric Gunnerson's C# Compendium
|
|
Many months ago, I did a TechEd talk entitled "What's wrong with this code?". I've decided to re-target those snippets into blog posts. If you were at the talk, this may be boring, though I'll try to add a little anecdotal information in my answers. Here's the plan: - I post the snippet
- You comment on what's wrong with it
- I post my answer, and any comments that I like
- Repeat until I run out of snippetts.
Here's the snippet: switch (s) { case "a": try { HitA(); } catch (Exception e) { throw e; } break; case "b": try { HitB(); } catch (Exception e) { throw e; } break; } What's wrong with this code?
Read: C# - What's wrong with this code? - #1
|
|