Пример #1
0
        // parse the assembly definitions using metadata reader
        public MethodParser(string assemblyPath)
        {
            var comReader = new ComReader(assemblyPath);

            foreach (MetadataMethod method in comReader.getMethodsWithCustomAttribute(ComReader.exportAttribute))
            {
                var tokens = method.typeName.Split('.');
                if(tokens.Length > 1)
                    methods.Add(new Method(method.name,tokens[0],tokens[1]));
            }
        }