Skip to content

Commit 635a734

Browse files
Enable PreResumeLayout calls
1 parent 21f074d commit 635a734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ICSharpCode.CodeConverter/CSharp/NodesVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ private MethodsWithHandles GetMethodWithHandles(VBSyntax.TypeBlockSyntax parentT
522522
.Where(p => p.HandlesKind != VBasic.HandledEventKind.WithEvents)
523523
.Select(p => (SyntaxFactory.Identifier(GetCSharpIdentifierText(p)), SyntaxFactory.Identifier(p.EventSymbol.Name)))
524524
.ToList();
525-
if (!csPropIds.Any()) return null;
525+
if (!csPropIds.Any() && !csFormIds.Any()) return null;
526526
var csMethodId = SyntaxFactory.Identifier(m.Name);
527527
return new MethodWithHandles(csMethodId, csPropIds, csFormIds);
528528
}).Where(x => x != null)

0 commit comments

Comments
 (0)