Ejemplo 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));
        }
Ejemplo 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());
        }