예제 #1
0
파일: Program.cs 프로젝트: zedr0n/testJS
        // 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]));
            }
        }
예제 #2
0
 public void init()
 {
     _assemblyPath = createAssembly();
     _comReader = new ComReader(_assemblyPath);
 }