diff --git a/src/Generator/Generators/CSharp/CSharpSources.cs b/src/Generator/Generators/CSharp/CSharpSources.cs
index 84a79735..9ec4e65f 100644
--- a/src/Generator/Generators/CSharp/CSharpSources.cs
+++ b/src/Generator/Generators/CSharp/CSharpSources.cs
@@ -362,20 +362,19 @@ namespace CppSharp.Generators.CSharp
PushBlock(BlockKind.BlockComment);
WriteLine(comment.FullComment.CommentToString(Options.CommentPrefix));
PopBlock();
+ return;
}
- else
- {
- if (string.IsNullOrWhiteSpace(comment.BriefText))
- return;
- PushBlock(BlockKind.BlockComment);
- WriteLine("{0} ", Options.CommentPrefix);
- foreach (string line in HtmlEncoder.HtmlEncode(comment.BriefText).Split(
- Environment.NewLine.ToCharArray()))
- WriteLine("{0} {1}", Options.CommentPrefix, line);
- WriteLine("{0} ", Options.CommentPrefix);
- PopBlock();
- }
+ if (string.IsNullOrWhiteSpace(comment.BriefText))
+ return;
+
+ PushBlock(BlockKind.BlockComment);
+ WriteLine("{0} ", Options.CommentPrefix);
+ foreach (string line in HtmlEncoder.HtmlEncode(comment.BriefText).Split(
+ Environment.NewLine.ToCharArray()))
+ WriteLine("{0} {1}", Options.CommentPrefix, line);
+ WriteLine("{0} ", Options.CommentPrefix);
+ PopBlock();
}
public void GenerateInlineSummary(RawComment comment)