Created
June 20, 2014 20:39
-
-
Save Fhernd/e01b0acdaf7cdb3f38bb to your computer and use it in GitHub Desktop.
Error orden de clausulas catch.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Articulos.Cap04 | |
{ | |
public sealed class OrdenCatch | |
{ | |
public static void Main() | |
{ | |
object o = null; | |
try | |
{ | |
int i = (int) o; | |
} | |
catch (Exception e) | |
{ | |
//... | |
} | |
catch (InvalidCastException e) | |
{ | |
//... | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment