コード例 #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
ファイル: MetadataTest.cs プロジェクト: zedr0n/testJS
 public void init()
 {
     _assemblyPath = createAssembly();
     _comReader = new ComReader(_assemblyPath);
 }