Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created June 20, 2014 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/e01b0acdaf7cdb3f38bb to your computer and use it in GitHub Desktop.
Save Fhernd/e01b0acdaf7cdb3f38bb to your computer and use it in GitHub Desktop.
Error orden de clausulas catch.
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