Пример #1
0
 public MethodCode(ILInstructionInfo iinfo, int entryPoint = 0, ISet <int> exitPoints = null)
     : base(iinfo.Instructions, iinfo.Marshal, iinfo, entryPoint, exitPoints)
 {
     LocalVariables = iinfo.Body.LocalVariables;
 }
Пример #2
0
        public static MethodCode Create(MethodBase mi, int entryPoint = 0, ISet <int> exitPoints = null)
        {
            ILInstructionInfo iinfo = new ILInstructionInfo(mi);

            return(new MethodCode(iinfo, entryPoint, exitPoints));
        }