Skip to content

Commit

Permalink
chore(dotnet): generate generic EventHandlers (#6076)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Apr 6, 2021
1 parent 33198c3 commit fd40c92
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions utils/doclint/generateDotnetApi.js
Expand Up @@ -280,10 +280,7 @@ function renderMember(member, parent, out) {
throw new Error(`No Event Type for ${name} in ${parent.name}`);
if (member.spec)
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
if (parent && (classNameMap.get(parent.name) === type))
output(`event EventHandler ${name};`); // event sender will be the type, so we're fine to ignore
else
output(`event EventHandler<${type}> ${name};`);
output(`event EventHandler<${type}> ${name};`);
} else if (member.kind === 'property') {
if (member.spec)
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
Expand Down

0 comments on commit fd40c92

Please sign in to comment.