Esempio n. 1
0
 public static void SyncFleeILGeneratorLabels(FleeIlGenerator source, FleeIlGenerator target)
 {
     while (source.LabelCount != target.LabelCount)
     {
         target.DefineLabel();
     }
 }
Esempio n. 2
0
        public Label GetLabel(object key, FleeIlGenerator ilg)
        {
            Label lbl;
            var   flag = !this.myKeyLabelMap.TryGetValue(RuntimeHelpers.GetObjectValue(key), out lbl);

            if (flag)
            {
                lbl = ilg.DefineLabel();
                this.myKeyLabelMap.Add(RuntimeHelpers.GetObjectValue(key), lbl);
            }
            return(lbl);
        }