namespace Mono.ILASM {
public class HandlerBlock {
+
+ private LabelInfo from_label;
+ private LabelInfo to_label;
- public readonly string from_label;
- public readonly string to_label;
-
- public HandlerBlock (string from_label, string to_label)
+ public HandlerBlock (LabelInfo from_label, LabelInfo to_label)
{
this.from_label = from_label;
this.to_label = to_label;
public PEAPI.CILLabel GetFromLabel (CodeGen code_gen, MethodDef method)
{
- return method.GetLabelDef (from_label);
+ return from_label.Label;
}
public PEAPI.CILLabel GetToLabel (CodeGen code_gen, MethodDef method)
{
- return method.GetLabelDef (to_label);
+ return to_label.Label;
}
}