Esempio n. 1
0
 public static IReadOnlyList <Instruction> GetInstructions(this MethodBase self)
 {
     return(MethodBodyReader.GetInstructions(self).AsReadOnly());
 }
Esempio n. 2
0
        public static List <Instruction> GetInstructions(MethodBase method)
        {
            var reader = new MethodBodyReader(method);

            return(reader.ReadInstructions());
        }