chore(dotnet): avoid adding two prefixes (#5974)

This commit is contained in:
Darío Kondratiuk 2021-03-27 13:58:36 -03:00 committed by GitHub
parent 49bbc2bc76
commit 779037a77e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -438,7 +438,8 @@ function renderMethod(member, parent, output, name) {
// set-only methods to settable properties
if (member.args.size == 0
&& type !== 'void'
&& !name.startsWith('Get')) {
&& !name.startsWith('Get')
&& !/Is[A-Z]/.test(name)) {
if (!member.async) {
if (member.spec)
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));