using (var stream = new FileStream(@"E:\mscorlib.dll", FileMode.Open)) { var reader = new PEReader(stream); var metaDataReader = reader.GetMetadataReader(MetadataReaderOptions.Default); foreach (var def in metaDataReader.TypeDefinitions) { var name = metaDataReader.GetString(metaDataReader.GetTypeDefinition(def).Name); Console.WriteLine(name); } }