Esempio n. 1
0
        /// <summary>
        /// Parse assembly using specified Assembly.
        /// </summary>
        /// <param name="assembly">Assembly to be parsed.</param>
        /// <returns>Cecil Assembly tree.</returns>
        public static AssemblyDefinition Parse(Assembly assembly)
        {
            var options = new DefaultAssemblyParserConfig();

            return(AssemblyParser.Parse(assembly, options));
        }
Esempio n. 2
0
        /// <summary>
        /// Parse assembly using specified Assembly.
        /// </summary>
        /// <param name="assembly">Assembly to be parsed.</param>
        /// <param name="options">Parsing options configuration object.</param>
        /// <returns>Cecil Assembly tree.</returns>
        public static AssemblyDefinition Parse(Assembly assembly, IAssemblyParserConfig options)
        {
            var mapper = new AssemblyParser(assembly, options);

            return(mapper.Map());
        }