// 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])); } }
public void init() { _assemblyPath = createAssembly(); _comReader = new ComReader(_assemblyPath); }