You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
71 lines
1.3 KiB
// |
|
// Author: |
|
// Jb Evain (jbevain@gmail.com) |
|
// |
|
// Copyright (c) 2008 - 2015 Jb Evain |
|
// Copyright (c) 2008 - 2011 Novell, Inc. |
|
// |
|
// Licensed under the MIT/X11 license. |
|
// |
|
|
|
namespace ILRuntime.Mono.Cecil.Cil { |
|
|
|
public enum ExceptionHandlerType { |
|
Catch = 0, |
|
Filter = 1, |
|
Finally = 2, |
|
Fault = 4, |
|
} |
|
|
|
public sealed class ExceptionHandler { |
|
|
|
Instruction try_start; |
|
Instruction try_end; |
|
Instruction filter_start; |
|
Instruction handler_start; |
|
Instruction handler_end; |
|
|
|
TypeReference catch_type; |
|
ExceptionHandlerType handler_type; |
|
|
|
public Instruction TryStart { |
|
get { return try_start; } |
|
set { try_start = value; } |
|
} |
|
|
|
public Instruction TryEnd { |
|
get { return try_end; } |
|
set { try_end = value; } |
|
} |
|
|
|
public Instruction FilterStart { |
|
get { return filter_start; } |
|
set { filter_start = value; } |
|
} |
|
|
|
public Instruction HandlerStart { |
|
get { return handler_start; } |
|
set { handler_start = value; } |
|
} |
|
|
|
public Instruction HandlerEnd { |
|
get { return handler_end; } |
|
set { handler_end = value; } |
|
} |
|
|
|
public TypeReference CatchType { |
|
get { return catch_type; } |
|
set { catch_type = value; } |
|
} |
|
|
|
public ExceptionHandlerType HandlerType { |
|
get { return handler_type; } |
|
set { handler_type = value; } |
|
} |
|
|
|
public ExceptionHandler (ExceptionHandlerType handlerType) |
|
{ |
|
this.handler_type = handlerType; |
|
} |
|
} |
|
}
|
|
|