Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- {
- //...
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement