Ejemplo n.º 1
0
        public MetadataFile VisitMetadataFile(MetadataFile_v2 sMetadata)
        {
            var typeLib = loader.LoadMetadata(sMetadata.Filename);

            TypeLibraryLoaded.Fire(this, new TypeLibraryEventArgs(typeLib));
            return(new MetadataFile
            {
                Filename = sMetadata.Filename,
                ModuleName = typeLib.ModuleName,
                TypeLibrary = typeLib
            });
        }
Ejemplo n.º 2
0
        public MetadataFile LoadMetadataFile(string filename)
        {
            var platform = DeterminePlatform(filename);
            var typeLib  = loader.LoadMetadata(filename, platform);

            TypeLibraryLoaded.Fire(this, new TypeLibraryEventArgs(typeLib));
            return(new MetadataFile
            {
                Filename = filename,
                ModuleName = typeLib.ModuleName,
                TypeLibrary = typeLib
            });
        }