Пример #1
0
 private static ICliMetadataTypeDefinitionTableRow ScanForMemberData(ICliMetadataModuleTableRow metadata)
 {
     if (metadata.MetadataRoot.TableStream.TypeDefinitionTable != null)
     {
         return(metadata.MetadataRoot.TableStream.TypeDefinitionTable[1]);
     }
     //foreach (ICliMetadataTypeDefinitionTableRow typeInfo in metadata.MetadataRoot.TableStream.TypeDefinitionTable)
     //    if (typeInfo.Name == "<Module>" && typeInfo.ExtendsIndex == 0 && typeInfo.ExtendsSource == CliMetadataTypeDefOrRefTag.TypeDefinition)
     //        return typeInfo;
     return(null);
 }
Пример #2
0
 internal CliModule(CliAssembly owner, ICliMetadataModuleTableRow metadata)
     : base(owner)
 {
     this.Metadata   = metadata;
     this.memberData = ScanForMemberData(metadata);
 }