|
|
@ -21,6 +21,7 @@ using System.Collections.Generic; |
|
|
|
using System.Collections.ObjectModel; |
|
|
|
using System.Collections.ObjectModel; |
|
|
|
using System.ComponentModel.Composition; |
|
|
|
using System.ComponentModel.Composition; |
|
|
|
using System.IO; |
|
|
|
using System.IO; |
|
|
|
|
|
|
|
using System.Linq; |
|
|
|
using ICSharpCode.Decompiler; |
|
|
|
using ICSharpCode.Decompiler; |
|
|
|
using ICSharpCode.Decompiler.Util; |
|
|
|
using ICSharpCode.Decompiler.Util; |
|
|
|
using ICSharpCode.Decompiler.Metadata; |
|
|
|
using ICSharpCode.Decompiler.Metadata; |
|
|
@ -68,7 +69,7 @@ namespace ICSharpCode.ILSpy.TreeNodes |
|
|
|
if (s == null) return; |
|
|
|
if (s == null) return; |
|
|
|
s.Position = 0; |
|
|
|
s.Position = 0; |
|
|
|
try { |
|
|
|
try { |
|
|
|
foreach (var entry in new ResourcesFile(s)) { |
|
|
|
foreach (var entry in new ResourcesFile(s).OrderBy(e => e.Key, NaturalStringComparer.Instance)) { |
|
|
|
ProcessResourceEntry(entry); |
|
|
|
ProcessResourceEntry(entry); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (BadImageFormatException) { |
|
|
|
} catch (BadImageFormatException) { |
|
|
@ -78,7 +79,7 @@ namespace ICSharpCode.ILSpy.TreeNodes |
|
|
|
|
|
|
|
|
|
|
|
private void ProcessResourceEntry(KeyValuePair<string, object> entry) |
|
|
|
private void ProcessResourceEntry(KeyValuePair<string, object> entry) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (entry.Value is String) { |
|
|
|
if (entry.Value is string) { |
|
|
|
stringTableEntries.Add(new KeyValuePair<string, string>(entry.Key, (string)entry.Value)); |
|
|
|
stringTableEntries.Add(new KeyValuePair<string, string>(entry.Key, (string)entry.Value)); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|