Browse Source
Merge pull request #3418 from jwfx/resx-exception
Fix exception when writing resx files without adding any resources
pull/3422/head
Siegfried Pammer
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
ICSharpCode.Decompiler/Util/ResXResourceWriter.cs
|
|
@ -312,6 +312,9 @@ namespace ICSharpCode.Decompiler.Util |
|
|
|
|
|
|
|
public void Generate() |
|
|
|
{ |
|
|
|
if (writer == null) |
|
|
|
InitWriter(); |
|
|
|
|
|
|
|
if (written) |
|
|
|
throw new InvalidOperationException("The resource is already generated."); |
|
|
|
|
|
|
|